Permalink
Browse files

[ui] show running/max drones in `apps list`.

  • Loading branch information...
1 parent fb146d8 commit efaa4d424c117eb9e4a273c88dfd105f7145c6c6 @chjj chjj committed Oct 31, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/jitsu/commands/apps.js
@@ -314,7 +314,7 @@ apps.list = function (username, callback) {
if (err) {
return callback(err);
}
-
+
jitsu.commands.apps.list(username, callback);
});
}
@@ -324,7 +324,7 @@ apps.list = function (username, callback) {
if (err) {
return callback(err);
}
-
+
jitsu.commands.apps.list(username, callback);
});
}
@@ -351,8 +351,8 @@ apps.list = function (username, callback) {
return callback();
}
- var rows = [['name', 'state', 'subdomain', 'running snapshot']],
- colors = ['underline', 'underline', 'underline', 'underline'];
+ var rows = [['name', 'state', 'subdomain', 'drones', 'running snapshot']],
+ colors = ['underline', 'underline', 'underline', 'underline', 'underline'];
apps.forEach(function (app) {
app.state = jitsu.common.formatAppState(app.state);
@@ -369,6 +369,7 @@ apps.list = function (username, callback) {
app.name,
app.state,
app.subdomain,
+ app.drones + '/' + app.maxDrones,
snapshot
]);
});

0 comments on commit efaa4d4

Please sign in to comment.