Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Commit

Permalink
Use sprintf from node_modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Mar 30, 2011
1 parent 498ffdf commit fc84ebb
Show file tree
Hide file tree
Showing 41 changed files with 40 additions and 138 deletions.
2 changes: 1 addition & 1 deletion lib/cast-agent/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

var sys = require('sys');
var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var log = require('util/log');
var version = require('util/version');
var ps = require('util/pubsub');
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/bundles/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var sys = require('sys');
var fs = require('fs');
var path = require('path');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var async = require('extern/async');

var tarball = require('util/tarball');
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/bundles/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

var sys = require('sys');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var terminal = require('util/terminal');
var http = require('util/http');
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/bundles/validate-manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var sys = require('sys');
var path = require('path');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var manifest = require('manifest/index');
var manifestConstants = require('manifest/constants');
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/completion.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var sys = require('sys');
var path = require('path');

var sprintf = require('extern/sprintf');
var sprintf = require('sprintf');

var misc = require('util/misc');

Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var terminal = require('util/terminal');
var version = require('util/version');
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/instances/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var dotfiles = require('util/client_dotfiles');
var manifest = require('manifest');
var MANIFEST_FILENAME = require('manifest/constants').MANIFEST_FILENAME;

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var async = require('extern/async');


Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/instances/destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var http = require('util/http');
var misc = require('util/misc');
var term = require('util/terminal');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var async = require('extern/async');

var config = {
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/instances/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

var sys = require('sys');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var http = require('util/http');
var terminal = require('util/terminal');
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/remotes/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var url = require('url');
var fs = require('fs');

var async = require('extern/async');
var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var Errorf = require('util/misc').Errorf;

var dotfiles = require('util/client_dotfiles');
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/remotes/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

var sys = require('sys');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var async = require('extern/async');

var Errorf = require('util/misc').Errorf;
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/remotes/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var sys = require('sys');
var fs = require('fs');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var async = require('extern/async');

var dotfiles = require('util/client_dotfiles');
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/remotes/set-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var fs = require('fs');
var sys = require('sys');

var async = require('extern/async');
var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var Errorf = require('util/misc').Errorf;

var dotfiles = require('util/client_dotfiles');
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/services/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

var sys = require('sys');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var http = require('util/http');
var terminal = require('util/terminal');
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/services/service_cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var path = require('path');

var http = require('util/http');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

exports.buildCommand = function(mod, action, actionPtense) {
var actionCapped = action.charAt(0).toUpperCase() + action.slice(1);
Expand Down
2 changes: 1 addition & 1 deletion lib/cast-client/commands/services/tail.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var sys = require('sys');
var path = require('path');
var http = require('util/http');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var config = {
shortDescription: 'Print log file for a specified service',
Expand Down
2 changes: 1 addition & 1 deletion lib/deployment/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var spawn = require('child_process').spawn;
var util = require('util');

var async = require('extern/async');
var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var dotfiles = require('util/client_dotfiles');
var log = require('util/log');
Expand Down
2 changes: 1 addition & 1 deletion lib/deployment/instances.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var fsutil = require('util/fs');
var flowctrl = require('util/flow_control');

var async = require('extern/async');
var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var INSTANCE_NAME_RE = /^[a-zA-Z0-9_\-]+$/;

Expand Down
98 changes: 0 additions & 98 deletions lib/extern/sprintf.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/health/checks/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var sys = require('sys');
var http = require('http');
var url = require('url');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var log = require('util/log');

var Check = require('health').Check;
Expand Down
2 changes: 1 addition & 1 deletion lib/health/checks/tcp.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var sys = require('sys');
var net = require('net');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var log = require('util/log');

var Check = require('health').Check;
Expand Down
2 changes: 1 addition & 1 deletion lib/manifest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var path = require('path');
var fs = require('fs');

var async = require('extern/async');
var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var misc = require('util/misc');
var ufs = require('util/fs');
Expand Down
2 changes: 1 addition & 1 deletion lib/manifest/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var path = require('path');

var T = require('extern/strobe-templates/index');
var async = require('extern/async');
var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var misc = require('util/misc');
var health = require('health');
Expand Down
2 changes: 1 addition & 1 deletion lib/norris/facts/gnutar.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var exec = require('child_process').exec;

var async = require('extern/async');
var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var trim = require('util/misc').trim;

Expand Down
2 changes: 1 addition & 1 deletion lib/security/certgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var exec = require('child_process').exec;
var fs = require('fs');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var log = require('util/log');
var config = require('util/config');
Expand Down
2 changes: 1 addition & 1 deletion lib/service_management/runit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var misc = require('util/misc');
var config = require('util/config');
var fsutil = require('util/fs');
var flowctrl = require('util/flow_control');
var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var async = require('extern/async');
var jspack = require('extern/jspack/jspack').jspack;

Expand Down
2 changes: 1 addition & 1 deletion lib/service_management/runit/templates/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var misc = require('util/misc');
var config = require('util/config');
Expand Down
2 changes: 1 addition & 1 deletion lib/service_management/runit/templates/nodejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

var path = require('path');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var base = require('./base');

var norris = require('norris');
Expand Down
2 changes: 1 addition & 1 deletion lib/service_management/runit/templates/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

var path = require('path');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var base = require('./base');

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/services/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var sys = require('sys');
var net = require('net');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;
var WorkerPool = require('extern/node-worker/index').worker_pool.WorkerPool;

var ps = require('util/pubsub');
Expand Down
2 changes: 1 addition & 1 deletion lib/services/health.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var sys = require('sys');
var uuid = require('extern/uuid');

var async = require('extern/async');
var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var ps = require('util/pubsub');
var log = require('util/log');
Expand Down
2 changes: 1 addition & 1 deletion lib/services/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var sys = require('sys');
var fs = require('fs');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var crypto = require('crypto');
var ps = require('util/pubsub');
Expand Down
2 changes: 1 addition & 1 deletion lib/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

var log = require('util/log');
var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

/**
* Base service class
Expand Down
2 changes: 1 addition & 1 deletion lib/util/command_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var sys = require('sys');
var path = require('path');

var sprintf = require('extern/sprintf').sprintf;
var sprintf = require('sprintf').sprintf;

var log = require('util/log');
var misc = require('util/misc');
Expand Down
Loading

0 comments on commit fc84ebb

Please sign in to comment.