Merge pull request #251 from resin-io/jviotti/fix/stream-wait-sudo

Refer to the correct waiting stream function
This commit is contained in:
Juan Cruz Viotti 2015-10-26 08:45:14 -04:00
commit bea5f22732
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
(function() {
var Promise, _, capitano, chalk, child_process, os;
var Promise, _, capitano, chalk, child_process, os, rindle;
Promise = require('bluebird');
@ -11,6 +11,8 @@
child_process = require('child_process');
rindle = require('rindle');
os = require('os');
chalk = require('chalk');
@ -46,7 +48,7 @@
spawn = child_process.spawn('sudo', command, {
stdio: 'inherit'
});
return exports.waitStream(spawn);
return rindle.wait(spawn);
};
}).call(this);

View File

@ -3,6 +3,7 @@ capitano = Promise.promisifyAll(require('capitano'))
_ = require('lodash')
_.str = require('underscore.string')
child_process = require('child_process')
rindle = require('rindle')
os = require('os')
chalk = require('chalk')
@ -40,4 +41,4 @@ exports.sudo = (command) ->
spawn = child_process.spawn 'sudo', command,
stdio: 'inherit'
return exports.waitStream(spawn)
return rindle.wait(spawn)