Skip to content

Commit

Permalink
Changes from deprecated sys/util.puts to console.log, adds Peter Lyon…
Browse files Browse the repository at this point in the history
…s as conntributor, and updates node engine requirement to 0.6.0.
  • Loading branch information
tsmith committed Jan 27, 2012
1 parent a4f392a commit 4115310
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions README
Expand Up @@ -633,6 +633,7 @@ machine if running a local sshd.
CONTRIBUTORS

* David Pratt (https://github.com/fairwinds)
* Peter Lyons (https://github.com/focusaurus)



Expand Down
2 changes: 1 addition & 1 deletion lib/configurator.js
Expand Up @@ -63,7 +63,7 @@ function controllers(addresses, prototype) {

// deprecated
function hosts(config, addresses) {
util.puts("!! hosts() is deprecated");
console.log("!! hosts() is deprecated");

if (!config) {
throw new Error("No config");
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -11,7 +11,7 @@ function begin() {
} catch (e) {
if (e.name === 'TypeError' && e.message ===
"Property 'log' of object #<Object> is not a function") {
util.puts('!! Set logPath instead of log on controllers.');
console.log('!! Set logPath instead of log on controllers.');
}
throw e;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/log.js
Expand Up @@ -53,7 +53,7 @@ function puts(message, prefix, path) {
}

if (echo) {
util.puts(logPrefix + line);
console.log(logPrefix + line);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/task.js
Expand Up @@ -28,7 +28,7 @@ function perform(name, config) {
log += " for " + config.id();
}

util.puts(log);
console.log(log);

if (!task) {
throw new Error('No task named: ' + name);
Expand Down Expand Up @@ -67,7 +67,7 @@ function task(name, description, callback) {
function list() {
for (var i in tasks) {
if (tasks.hasOwnProperty(i)) {
util.puts(i + ': ' + descriptions[i]);
console.log(i + ': ' + descriptions[i]);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -4,5 +4,5 @@
"author" : "Thomas Smith <node@thomassmith.com>",
"repository" : { "type" : "git" , "url" : "git://github.com/tsmith/node-control.git" },
"main" : "./lib",
"engines" : { "node" : ">=0.1.99" }
"engines" : { "node" : ">=0.6.0" }
}

0 comments on commit 4115310

Please sign in to comment.