Skip to content

Commit

Permalink
Merge pull request #7 from nathfisher/master
Browse files Browse the repository at this point in the history
added 'exec:{}' option to pass options to ssh exec command. configurable...
  • Loading branch information
pstadler committed Mar 5, 2014
2 parents 5e71d1b + a40228f commit 4192b34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/transport/ssh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4192b34

Please sign in to comment.