Skip to content

Commit

Permalink
removed trailing whitespace from lib/forever.js and lib/forever/cli.js ☠
Browse files Browse the repository at this point in the history
  • Loading branch information
jlank authored and indexzero committed Apr 21, 2013
1 parent 1ec1a16 commit 94f61f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
22 changes: 11 additions & 11 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ var help = [
var app = flatiron.app;

var actions = [
'start',
'stop',
'start',
'stop',
'stopall',
'restart',
'restartall',
'list',
'config',
'set',
'list',
'config',
'set',
'clear',
'logs',
'columns',
'columns',
'cleanlogs'
];

Expand Down Expand Up @@ -392,14 +392,14 @@ app.cmd('clear :key', cli.clear = function (key) {
//
// ### function logs (target)
// #### @target {string} Target script or index to list logs for
// Displays the logs using `tail` for the specified `target`.
// Displays the logs using `tail` for the specified `target`.
//
app.cmd('logs :index', cli.logs = function (index) {
forever.tail(index, function (err, logs) {
if (err) {
return forever.log.error(err.message);
}

logs.forEach(function (proc) {
forever.log.info('Showing logs for ' + proc.file.magenta);
proc.logs.forEach(function (line) {
Expand All @@ -417,15 +417,15 @@ app.cmd('logs', cli.logFiles = function (index) {
if (typeof index !== 'undefined') {
return;
}

var rows = [[' ', 'script', 'logfile']];
index = 0;

forever.list(false, function (err, processes) {
if (!processes) {
return forever.log.warn('No forever logfiles in ' + forever.config.get('root').magenta);
}

forever.log.info('Logs for running Forever processes');
rows = rows.concat(processes.map(function (proc) {
return ['[' + index++ + ']', proc.file.grey, proc.logFile.magenta];
Expand Down Expand Up @@ -513,7 +513,7 @@ cli.start = function () {
if (app.argv._.length && actions.indexOf(app.argv._[0]) === -1) {
return cli.run();
}

app.start();
});
};
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"timespan": "2.0.1",
"watch": "0.5.1",
"utile": "0.1.2",
"winston": "0.6.2"
"winston": "0.6.2",
"event-stream": "3.0.2"
},
"devDependencies": {
"broadway": "0.2.x",
Expand Down

0 comments on commit 94f61f5

Please sign in to comment.