Page MenuHomeSealhub

No OneTemporary

diff --git a/index.js b/index.js
deleted file mode 100644
index 645bcb54..00000000
--- a/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var PrometheusCore = require("./lib/core.js");
-
-var mode = "local";
-var layer_name = null;
-
-for(var i in process.argv){
- var argument = process.argv
-}
-
-
-PrometheusCore.start(process.argv[2],process.argv[3], process.argv[4]);
\ No newline at end of file
diff --git a/main.js b/main.js
new file mode 100644
index 00000000..edee7ae5
--- /dev/null
+++ b/main.js
@@ -0,0 +1,2 @@
+var PrometheusCore = require("./lib/core.js");
+module.exports = PrometheusCore;
\ No newline at end of file
diff --git a/package.json b/package.json
index d90e466f..2803d2c4 100644
--- a/package.json
+++ b/package.json
@@ -1,52 +1,54 @@
{
"name": "sealious",
- "version": "0.0.2",
+ "version": "0.0.8",
"description": "",
- "main": "index.js",
+ "main": "./main.js",
"scripts": {
"test": "mocha ./tests/test.js && mocha ./tests/test.js -R travis-cov"
},
+ "bin" : {
+ "sealious" : "./shell.js"
+ },
"repository": {
"type": "git",
"url": "https://github.com/groovy354/Prometheus.git"
},
"keywords": [
"prometheus"
],
"author": "Kuba Orlik",
"license": "BSD-2-Clause",
"bugs": {
"url": "https://github.com/groovy354/Prometheus/issues"
},
"dependencies": {
"socket.io": "~1.2.0",
"hapi": "~7.5.0",
"boom": "~2.6.0",
"glue": "~1.0.0",
"open": "0.0.5",
"ip": "~0.3.2",
"socket.io-client": "~1.2.0",
"Set": "~0.4.1",
"http": "0.0.0",
"request": "~2.47.0",
"query-string": "~1.0.0",
"simpleargs": "0.0.2",
"mongodb": "~1.4.19",
"bluebird": "~2.3.11",
"merge": "~1.2.0",
- "sha1": "~1.1.0",
- "microtime": "~1.1.0"
+ "sha1": "~1.1.0"
},
"devDependencies": {
"blanket": "1.1.6",
"mocha": "*",
"npm-server": "0.0.1",
"should": "~4.4.0",
"travis-cov ": "*"
},
"config": {
"blanket": {
"pattern": "node_modules"
}
}
}
diff --git a/shell.js b/shell.js
new file mode 100644
index 00000000..7a60edc3
--- /dev/null
+++ b/shell.js
@@ -0,0 +1,18 @@
+#!/usr/bin/env node
+
+var PrometheusCore = require("./lib/core.js");
+
+var mode = "local";
+var layer_name = null;
+
+var index = 2;
+var argument = process.argv[index];
+if(argument.slice(0,2)=="--"){
+ layer_name = argument.slice(2);
+ mode="distributed";
+ index++;
+}
+app_location = process.argv[index];
+
+
+PrometheusCore.start(mode, layer_name, app_location);
\ No newline at end of file

File Metadata

Mime Type
text/x-diff
Expires
Sat, Oct 11, 07:20 (19 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
983961
Default Alt Text
(2 KB)

Event Timeline