Permalink
Browse files

Merge pull request #5 from skyisle/master

Broken jinsu create and deploy
  • Loading branch information...
2 parents 7203052 + 6b43ba6 commit 728b1fdc05a111a57cdd5c18a7cf29c0238a6476 @pksunkara pksunkara committed Jan 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 node.js/lib/client/apps.js
@@ -46,6 +46,7 @@ Apps.prototype.list = function (username, callback) {
// Creates an application with the specified package.json manifest in `app`.
//
Apps.prototype.create = function (app, callback) {
+ var username = this.options.get('username');
this.request('POST', ['apps', username, app.name], app, callback, function (res, result) {
callback(null, result || res.statusCode);
@@ -151,7 +152,7 @@ Apps.prototype.stop = function (appName, callback) {
// in the current Nodejitsu environment.
//
Apps.prototype.available = function (app, callback) {
- var appName = defaultUser.call(this, appName),
+ var appName = defaultUser.call(this, app.name),
argv = ['apps'].concat(appName.split('/')).concat('available');
this.request('POST', argv, app, callback, function (res, result) {

0 comments on commit 728b1fd

Please sign in to comment.