nodejitsu-api
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -162,1 +162,17 @@ /* | ||
}; | ||
// | ||
// ### function setDrones (app, callback) | ||
// #### @app {string} Name of the application to set number of drones for. | ||
// #### @drones {Number} Number of drones to run. | ||
// #### @callback {function} Continuation to respond to when complete. | ||
// Runs `app` on `drones` drones. | ||
// | ||
Apps.prototype.setDrones = function (appName, drones, callback) { | ||
appName = defaultUser.call(this, appName); | ||
argv = ['apps'].concat(appName.split('/')).concat('drones'); | ||
this.request('POST', argv, { drones: drones }, callback, function (res, result) { | ||
callback(null, result || res.statusCode); | ||
}); | ||
}; |
@@ -149,3 +149,4 @@ /* | ||
'Content-Length': stat.size | ||
} | ||
}, | ||
timeout: self.options.get('timeout') || 8 * 60 * 1000 | ||
}; | ||
@@ -152,0 +153,0 @@ |
{ | ||
"name": "nodejitsu-api", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "nodejitsu API client wrapper", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/nodejitsu/nodejitsu-api", |
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
45757
1321
1