Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removes console logging and shifts command logging to take place befo…

…re subprocess execution.
  • Loading branch information...
commit 43fc52084825a295335d66203a5ffce0ce86b680 1 parent 782f8be
@tsmith authored Tom Smith committed
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/host.js
View
7 lib/host.js
@@ -42,10 +42,8 @@ function ssh(command, callback) {
args = options.concat(args);
}
- subProcess = spawn('ssh', args);
- console.log('args' + args);
-
log.puts(user + ':ssh ' + command);
+ subProcess = spawn('ssh', args);
listen(subProcess, log, callback);
}
@@ -65,9 +63,10 @@ function scp(local, remote, callback) {
if (exists) {
var reference = user + '@' + address + ':' + remote,
args = ['-r', local, reference],
- subProcess = spawn('scp', args);
+ subProcess;
log.puts(user + ':scp: ' + local + ' ' + reference);
+ subProcess = spawn('scp', args);
listen(subProcess, log, callback);
} else {
throw new Error('Local: ' + local + ' does not exist');
Please sign in to comment.
Something went wrong with that request. Please try again.