Skip to content

Gorokhov/gulp-scp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transfer files in gulp via scp. Currently i have only tested it with an ssh connection via key authentication.

Install

$ npm install --save-dev gulp-scp

Usage

var gulp = require('gulp');
var scp = require('gulp-scp');

gulp.task('default', function () {
    gulp.src('src/*')
        .pipe(scp({
            host: '255.255.255.255',
            user: 'username',
            port: 22,
            path: '~/dir'.
            cygwin:true
        }));
});

API

scp(options)

options.host

Required Type: String

options.port

Type: Number Default: 22

options.user

Type: String Default: ''

options.path

Required Type: String

The path to transfer to has to exist.

options.cygwin

Default: false Type: String

A param that indicates that scp is going to be started from cygwin environment, fixes destanation paths.

License

MIT © René Bischoff

About

Transfer files in gulp via scp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%