Permalink
Browse files

Add command to run one-off process

  • Loading branch information...
1 parent 189227a commit bfe3e15e254a0847a4337f91005f06f8dd672421 @avdgaag committed Jan 22, 2013
Showing with 10 additions and 1 deletion.
  1. +9 −0 lib/heroku.js
  2. +1 −1 package.json
View
@@ -166,6 +166,15 @@ module.exports = (function() {
this.request(this.appPath('ps'), fn);
};
+ // Run a one-off process for the current application.
+ Heroku.prototype.run = function(command, fn) {
+ this.request({
+ path: this.appPath('ps'),
+ method: 'POST',
+ post_data: { command: command }
+ }, fn);
+ };
+
// Scale an application's processes up or down
Heroku.prototype.scale = function(process_type, quantity, fn) {
this.request({
View
@@ -1,6 +1,6 @@
{
"name": "heroku-api",
- "version": "0.1.1",
+ "version": "0.1.2",
"description": "A thin wrapper around the Heroku API",
"keywords": ["API", "Heroku"],
"author": "Arjan van der Gaag <arjan@arjanvandergaag.nl>",

0 comments on commit bfe3e15

Please sign in to comment.