From a40228fded223525ad819019afe7a3e5537c8125 Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 26 Feb 2014 10:56:11 -0800 Subject: [PATCH] added 'exec:{}' option to pass options to ssh exec command. configurable in briefing or option to transport.[exec|sudo] --- lib/transport/ssh.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/transport/ssh.js b/lib/transport/ssh.js index a300896..01b80c1 100644 --- a/lib/transport/ssh.js +++ b/lib/transport/ssh.js @@ -37,7 +37,8 @@ SSHTransport.prototype.__exec = function(cmd, args, options) { cmd = cmd + (args ? ' ' + args : ''); this.logger.command(cmd); - this.connection.exec(cmd, function(err, stream) { + var execOpts = options.exec || this.config.exec || {}; + this.connection.exec(cmd, execOpts, function(err, stream) { if(err) { // TODO }