diff options
author | Artur Signell <artur@vaadin.com> | 2017-10-30 11:25:18 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2017-10-30 11:25:18 +0200 |
commit | fffbc6a4a9bf128c2f2365ae294071fb30249c2a (patch) | |
tree | fabfec100bce05866fe68e773f5dbb2b363e797a /tasks/common.js | |
parent | c72c103dd3dd04a52c0b2f2dc2373b4657e30c8e (diff) | |
parent | 8873b2afa0b0e63924ae3b83d9a32a7a1cf35e7a (diff) | |
download | vaadin-core-10.0.0-alpha5.tar.gz vaadin-core-10.0.0-alpha5.zip |
Merge branch '2.x'v10.0.0-alpha8v10.0.0-alpha7v10.0.0-alpha6v10.0.0-alpha5
Diffstat (limited to 'tasks/common.js')
-rw-r--r-- | tasks/common.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tasks/common.js b/tasks/common.js deleted file mode 100644 index dd22520..0000000 --- a/tasks/common.js +++ /dev/null @@ -1,26 +0,0 @@ -var args = require('yargs').argv; -var _ = require('lodash'); -var gutil = require('gulp-util'); -var config = require('./config'); - -function checkArguments(arguments) { - _.forEach(arguments, function(a) { - if(!args.hasOwnProperty(a)) { - throw Error('Required argument \'--'+ a +'\' is missing.'); - } - }); -} - -function ssh(user, host, command, done) { - gutil.log('SSH: ' + host + ' -> ' + command); - require('node-ssh-exec')({ - host: host, - username: user, - privateKey: config.paths.privateKey() - }, command, done); -} - -module.exports = { - ssh: ssh, - checkArguments: checkArguments -}; |