Permalink
Browse files

[minor] Update comments in commands/apps.js

  • Loading branch information...
indexzero committed Aug 13, 2011
1 parent 4ba9401 commit 8754c111edc5d5c1f7d73177ce5f2bf5c6e5e0d1
Showing with 12 additions and 10 deletions.
  1. +12 −10 lib/jitsu/commands/apps.js
View
@@ -51,16 +51,18 @@ apps.deploy = function (callback) {
return callback(new Error(), true);
}
-// if (existing.state === 'started') {
-//existing.state is thrown away in check app.
-//these closures would need to be rearanged so that this closure can see the result of view..
- apps.stop(existing.name, function (err) {
- return err ? callback(err) : apps.start(existing.name, callback);
- });
-// }
-// else {
-// apps.start(existing.name, callback);
-// }
+ //if (existing.state === 'started') {
+ //
+ // existing.state is thrown away in check app.
+ // these closures would need to be rearanged so that this closure can see the result of view..
+ //
+ apps.stop(existing.name, function (err) {
+ return err ? callback(err) : apps.start(existing.name, callback);
+ });
+ //}
+ //else {
+ // apps.start(existing.name, callback);
+ //}
}
function activateSnapshot (existing, snapshot) {

0 comments on commit 8754c11

Please sign in to comment.