Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils/lib/narwhal/tusk/platform.js
diff options
context:
space:
mode:
Diffstat (limited to 'utils/lib/narwhal/tusk/platform.js')
-rwxr-xr-xutils/lib/narwhal/tusk/platform.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/utils/lib/narwhal/tusk/platform.js b/utils/lib/narwhal/tusk/platform.js
deleted file mode 100755
index 48ac58c..0000000
--- a/utils/lib/narwhal/tusk/platform.js
+++ /dev/null
@@ -1,33 +0,0 @@
-
-var os = require('os');
-var util = require('util');
-var tusk = require('../tusk');
-var args = require('args');
-
-var parser = exports.parser = new args.Parser();
-
-parser.help('selects a platform for the current "sea"');
-
-parser.arg('platform').optional();
-
-parser.action(function (options) {
- var self = this;
- var directory = tusk.getDirectory();
- var platformsDirectory = directory.join('platforms');
- if (options.args.length == 0) {
- platformsDirectory.list().forEach(function (platformName) {
- self.print(platformName);
- });
- } else {
- var platform = options.args.shift();
- if (!util.has(platformsDirectory.list(), platform))
- throw new Error("No such platform");
- var narwhalConf = directory.join('narwhal.conf');
- narwhalConf.write(
- 'NARWHAL_DEFAULT_PLATFORM=' +
- os.enquote(platform)
- );
- }
-});
-
-