Skip to content

Commit

Permalink
[refactor] replace sys module usages with util
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Sep 2, 2011
1 parent 00628c2 commit 72eba1f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bin/forever
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var path = require('path'),
fs = require('fs'),
winston = require('winston'),
sys = require('sys'),
util = require('util'),
forever = require('./../lib/forever');

var action, accepts = [
Expand Down Expand Up @@ -84,7 +84,7 @@ function isSimpleAction () {
//
if (argv.h || argv.help || (argv._.length === 0 && !isSimpleAction())
&& (!argv.c && !argv.command)) {
return sys.puts(help);
return util.puts(help);
}

var mappings = {
Expand Down
3 changes: 1 addition & 2 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
*
*/

var sys = require('sys'),
path = require('path'),
var path = require('path'),
cliff = require('cliff'),
forever = require('../forever');

Expand Down
4 changes: 2 additions & 2 deletions lib/forever/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
*/

var sys = require('sys'),
var util = require('util'),
fs = require('fs'),
path = require('path'),
events = require('events'),
Expand Down Expand Up @@ -117,7 +117,7 @@ var Monitor = exports.Monitor = function (script, options) {
};

// Inherit from events.EventEmitter
sys.inherits(Monitor, events.EventEmitter);
util.inherits(Monitor, events.EventEmitter);

//
// ### function start ([restart])
Expand Down

0 comments on commit 72eba1f

Please sign in to comment.