Comparing version 1.1.0 to 1.2.0
1.2.0 / 2014-01-03 | ||
================== | ||
* add optional callback to .parse() | ||
1.1.0 / 2014-01-03 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -129,6 +129,8 @@ | ||
* @param {Array} argv | ||
* @param {Function} [fn] | ||
* @api public | ||
*/ | ||
Cloud.prototype.parse = function(argv){ | ||
Cloud.prototype.parse = function(argv, fn){ | ||
fn = fn || function(){}; | ||
var ctx = this.ctx = new Context; | ||
@@ -164,5 +166,3 @@ var self = this; | ||
var n = ~~program.concurrency; | ||
this.runTasks(program.args, n, function(err){ | ||
if (err) throw err; | ||
}); | ||
this.runTasks(program.args, n, fn); | ||
}; | ||
@@ -169,0 +169,0 @@ |
{ | ||
"name": "cloud", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"repository": "segmentio/cloud", | ||
@@ -5,0 +5,0 @@ "description": "remote scripting like capistrano / fabric for managing clusters", |
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
13255