boom-deploy
Advanced tools
Comparing version 0.2.56 to 0.2.57
@@ -97,7 +97,4 @@ var _ = require('lodash'); | ||
], function(err){ | ||
exec.end(err); | ||
exec.send(function(){ | ||
if (err) return exports.error(err); | ||
console.log($.bold.green('SUCCESS.')); | ||
}) | ||
if (err) return exports.error(err); | ||
console.log($.bold.green('SUCCESS.')); | ||
}); | ||
@@ -104,0 +101,0 @@ }; |
@@ -5,3 +5,3 @@ var Fiber = require('fibers'); | ||
Fiber(function(callback) { | ||
try{ | ||
try { | ||
callback(null, func.apply(null, args || [])); | ||
@@ -8,0 +8,0 @@ } catch (e) { |
@@ -10,12 +10,12 @@ var cp = require('child_process'); | ||
var err = []; | ||
var stderr = []; | ||
child.stderr.on('data', function (chunk) { | ||
process.stderr.write(chunk.toString()); | ||
err.push(chunk.toString()); | ||
stderr.push(chunk.toString()); | ||
}); | ||
var out = []; | ||
var stdout = []; | ||
child.stdout.on('data', function (chunk) { | ||
process.stdout.write(chunk.toString()); | ||
out.push(chunk.toString()); | ||
stdout.push(chunk.toString()); | ||
}); | ||
@@ -27,7 +27,8 @@ | ||
child.on('exit', function (code) { | ||
// console.log('EXIT CODE:', code); | ||
child.on('exit', function (code, signal) { | ||
// console.log('EXIT CODE:', code, signal); | ||
var err = code || signal ? new Error(code || signal) : null; | ||
if (callback) { | ||
setImmediate(function(){ | ||
callback(code === 0 ? null : code, out.join('')); | ||
callback(err, stdout.join('')); | ||
}) | ||
@@ -34,0 +35,0 @@ } |
{ | ||
"name": "boom-deploy", | ||
"main": "boom.js", | ||
"version": "0.2.56", | ||
"version": "0.2.57", | ||
"description": "deploy your app", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86565
2436