From 363f12f81b12b2d892bdde301ad783593540a992 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 26 Oct 2015 08:34:07 -0400 Subject: [PATCH] Refer to the correct waiting stream function We recently changed to using `rindle`, however looks like we forgot to replace this particular instance. --- build/utils/helpers.js | 6 ++++-- lib/utils/helpers.coffee | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build/utils/helpers.js b/build/utils/helpers.js index 8a678e7b..88f83701 100644 --- a/build/utils/helpers.js +++ b/build/utils/helpers.js @@ -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); diff --git a/lib/utils/helpers.coffee b/lib/utils/helpers.coffee index f5536f7d..1b4a1c63 100644 --- a/lib/utils/helpers.coffee +++ b/lib/utils/helpers.coffee @@ -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)