grunt-ssh icon indicating copy to clipboard operation
grunt-ssh copied to clipboard

More features

Open marty-krishner opened this issue 8 years ago • 1 comments

Hi,

would you like to work on more features like remove,rename, download files

marty-krishner avatar Mar 30 '16 04:03 marty-krishner

While there are workarounds, it would be nice if the SFTP task supported a "rename:" function in the same way that, say, grunt-contrib-copy or grunt-aws-s3 support it. For example here is a rename function used in an aws_s3 file upload process.

files: [
    { dest: '/', 'action': 'delete' },
    {
        expand: true,
        cwd: './dist',
        src: ['**','!**/urlConfig.json'],
        dest: '/',
        rename: function (dest, src) {
            return dest + src.replace('.production', '');
        }
    }
]

seinick avatar Feb 28 '18 19:02 seinick