-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
This library can be used in an application based on vinyl streams, outside of the context of Gulp (see below). In this context, the logging is a nuisance. Allow the logging to be tuned either globally or via the constructor (whichever makes more sense). If this is just a matter of documentation, simply add instructions to the README that explain how to control and tune the logging.
const GulpSSH = require('gulp-ssh')
const vfs = require('vinyl-fs')
;(async () => {
const gulpSSH = new GulpSSH({
ignoreErrors: false,
sshConfig: { username: process.env.USER, agent: process.env.SSH_AUTH_SOCK }
})
await new Promise((resolve, reject) => {
vfs
.src('*.zip')
.pipe(gulpSSH.dest('/tmp'))
.on('error', reject)
.on('finish', resolve)
})
})()Metadata
Metadata
Assignees
Labels
No labels