From d9ade9feccd1363316574a900a0e065f49001b6d Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Mon, 19 Oct 2015 23:03:56 +0200 Subject: Fix zip deployment --- tasks/common.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tasks/common.js') 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) { -- cgit v1.2.3