webpack-ultimate-sftp
Version:
A concurrent sftp webpack plugin that allows authentication with either a password or ssh private key
22 lines (14 loc) • 378 B
JavaScript
const Client = require('../sftp/client')
const Uploader = require('./Uploader')
const { trace } = require('../libs/utils')
class Sftp extends Uploader {
init() {
return new Promise((resolve, reject) => {
this.client = new Client(this.config)
})
}
upload(file) {
return this.client.uploadFile(file)
}
}
module.exports = Sftp