diff options
author | Manolo Carrasco <manolo@apache.org> | 2015-10-19 23:03:56 +0200 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2015-10-19 23:40:34 +0200 |
commit | d9ade9feccd1363316574a900a0e065f49001b6d (patch) | |
tree | 6b041ea843e17578f0f042485a877a740ebbc02c /tasks/common.js | |
parent | 1ae78d3679300ee196698b6c7a430c1ece4aea00 (diff) | |
download | vaadin-core-d9ade9feccd1363316574a900a0e065f49001b6d.tar.gz vaadin-core-d9ade9feccd1363316574a900a0e065f49001b6d.zip |
Fix zip deployment
Diffstat (limited to 'tasks/common.js')
-rw-r--r-- | tasks/common.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tasks/common.js b/tasks/common.js index d4ba658..316d245 100644 --- a/tasks/common.js +++ b/tasks/common.js @@ -3,6 +3,7 @@ var chalk = require('chalk'); var wct = require('web-component-tester').test; var _ = require('lodash'); var gutil = require('gulp-util'); +var config = require('./config'); function cleanDone(done) { return function(error) { @@ -40,9 +41,19 @@ function test(options, done) { wct(options, cleanDone(done)); } +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 = { localAddress: localAddress, test: test, + ssh: ssh, checkArguments: checkArguments, testSauce: function(suites, browsers, build, done) { |