Permalink
Browse files

[fix] app.view now works again without any arguments. Updated some lo…

…gging statements.
  • Loading branch information...
1 parent 8196fe8 commit b63f62d535bbf5bbc2a6119718f9485d21b97d37 @Marak Marak committed Nov 28, 2011
Showing with 8 additions and 7 deletions.
  1. +8 −7 lib/jitsu/commands/apps.js
View
15 lib/jitsu/commands/apps.js
@@ -291,11 +291,12 @@ apps.list.usage = [
//
apps.view = function (name, callback) {
- if(name.search('/') === -1){
- name = jitsu.config.get('username') + '/' + name;
- }
-
function executeView() {
+
+ if(name.search('/') === -1){
+ name = jitsu.config.get('username') + '/' + name;
+ }
+
jitsu.apps.view(name, function (err, app) {
if (err) {
return callback(err);
@@ -434,10 +435,10 @@ apps.destroy.usage = [
apps.start = function (name, callback) {
function executeStart() {
- winston.info('Starting app ' + name.magenta);
if(name.search('/') === -1){
name = jitsu.config.get('username') + '/' + name;
}
+ winston.info('Starting app ' + name.magenta);
jitsu.apps.start(name, function (err) {
if (err) {
return callback(err, true);
@@ -487,10 +488,10 @@ apps.start.usage = [
apps.restart = function (name, callback) {
function executeRestart() {
- winston.info('Restarting app ' + name.magenta);
if(name.search('/') === -1){
name = jitsu.config.get('username') + '/' + name;
}
+ winston.info('Restarting app ' + name.magenta);
jitsu.apps.restart(name, function (err) {
if (err) {
return callback(err);
@@ -533,10 +534,10 @@ apps.restart.usage = [
apps.stop = function (name, callback) {
function executeStop() {
- winston.info('Stopping app ' + name.magenta);
if(name.search('/') === -1){
name = jitsu.config.get('username') + '/' + name;
}
+ winston.info('Stopping app ' + name.magenta);
jitsu.apps.stop(name, function (err) {
if (err) {
return callback(err);

0 comments on commit b63f62d

Please sign in to comment.