lib/jitsu/commands/apps.js
function viewApp() {
    jitsu.log.info('Fetching app ' + name.magenta);
    jitsu.apps.view(name, function (err, app) {
      if (err) {
        jitsu.log.error('App ' + name.magenta + ' doesn\'t exist on Nodejitsu yet!');
        jitsu.log.help('Try running ' + 'jitsu deploy'.magenta);
        return callback({});
      }

      return provider && datacenter
        ? setCloud(app)
        : viewCloud(app);
    });
  }
function viewApp() {
    jitsu.log.info('Fetching app ' + name.magenta);
    jitsu.apps.view(name, function (err, app) {
      if (err) {
        jitsu.log.error('App ' + name.magenta + ' doesn\'t exist on Nodejitsu yet!');
        jitsu.log.help('Try running ' + 'jitsu deploy'.magenta);
        return callback({});
      }

      return provider && datacenter
        ? setCloud(app)
        : viewCloud(app);
    });
  }
function viewApp ( ) { jitsu . log . info ( 'Fetching app ' + name . magenta ) ; jitsu . apps . view ( name , function ( err , app ) { if ( err ) { jitsu . log . error ( 'App ' + name . magenta + ' doesn\'t exist on Nodejitsu yet!' ) ; jitsu . log . help ( 'Try running ' + 'jitsu deploy' . magenta ) ; return callback ( { } ) ; } return provider && datacenter ? setCloud ( app ) : viewCloud ( app ) ; } ) ; }
Retreive the app and call `setCloud` or `viewCloud` depending on what arguments have been passed.
Retreive the app and call setCloud or viewCloud depending on what arguments have been passed .