From ada660070013d162aa5ae5efb8dc2a9a815171f9 Mon Sep 17 00:00:00 2001 From: ezraroi Date: Fri, 21 Nov 2014 14:22:29 +0200 Subject: [PATCH] Added basic structure --- lib/configuration_updater/index.js | 8 ++++++++ lib/index.js | 11 +++++++++++ lib/monitor_runner/index.js | 8 ++++++++ package.json | 10 +++++++++- 4 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 lib/configuration_updater/index.js create mode 100644 lib/index.js create mode 100644 lib/monitor_runner/index.js diff --git a/lib/configuration_updater/index.js b/lib/configuration_updater/index.js new file mode 100644 index 0000000..bece4a7 --- /dev/null +++ b/lib/configuration_updater/index.js @@ -0,0 +1,8 @@ +'use strict'; + +var pkg = require('../../package.json'); +var winston = require('winston'); + +winston.log('info','Configuration Updater started @ %s',new Date().toString()); + + diff --git a/lib/index.js b/lib/index.js new file mode 100644 index 0000000..2cfdbea --- /dev/null +++ b/lib/index.js @@ -0,0 +1,11 @@ + +'use strict'; + +var winston = require('winston'); +var pkg = require('../package.json'); +var child_process = require('child_process'); +var monitor_runner = require('../lib/monitor_runner'); +var configuration_updater = require('../lib/configuration_updater'); + +winston.info('Codeine Peer - ' + pkg.version); + diff --git a/lib/monitor_runner/index.js b/lib/monitor_runner/index.js new file mode 100644 index 0000000..0c1ec64 --- /dev/null +++ b/lib/monitor_runner/index.js @@ -0,0 +1,8 @@ +'use strict'; + +var pkg = require('../../package.json'); +var winston = require('winston'); + +winston.log('info','Monitor Runner started @ %s',new Date().toString()); + + diff --git a/package.json b/package.json index 8e459cc..b421d1b 100644 --- a/package.json +++ b/package.json @@ -19,12 +19,20 @@ "grunt-contrib-jshint": "~0.10.0", "grunt-contrib-watch": "~0.6.1", "grunt-exec": "~0.4.2", - "load-grunt-tasks": "~0.6.0" + "load-grunt-tasks": "~0.6.0", + "mocha": "^2.0.1" }, "scripts": { "test": "grunt test" }, "bin": { "codeine": "bin/codeine" + }, + "dependencies": { + "async": "^0.9.0", + "minimist": "^1.1.0", + "request": "^2.48.0", + "underscore": "^1.7.0", + "winston": "^0.8.3" } }