summaryrefslogtreecommitdiffstats
path: root/tasks/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/common.js')
-rw-r--r--tasks/common.js11
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) {