aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/common.js
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2017-10-30 11:25:18 +0200
committerArtur Signell <artur@vaadin.com>2017-10-30 11:25:18 +0200
commitfffbc6a4a9bf128c2f2365ae294071fb30249c2a (patch)
treefabfec100bce05866fe68e773f5dbb2b363e797a /tasks/common.js
parentc72c103dd3dd04a52c0b2f2dc2373b4657e30c8e (diff)
parent8873b2afa0b0e63924ae3b83d9a32a7a1cf35e7a (diff)
downloadvaadin-core-10.0.0-alpha5.tar.gz
vaadin-core-10.0.0-alpha5.zip
Diffstat (limited to 'tasks/common.js')
-rw-r--r--tasks/common.js26
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
-};