Skip to content
Browse files

no message

  • Loading branch information...
1 parent 7b0f077 commit 24ad14c22840d561f20bd0e15bea1783cb17d3b9 @franklovecchio franklovecchio committed Jan 2, 2012
Showing with 6 additions and 8 deletions.
  1. +3 −5 run/client.js
  2. +3 −3 submodules/utilities.js
View
8 run/client.js
@@ -37,15 +37,11 @@ function NodeMonitor() {
var utilities = new utilitiesModule.UtilitiesManagerModule(constants);
var logger = new loggerModule.LoggingManagerModule(constants, utilities);
var credentials = new credentialsModule.CredentialManagerModule(constants, utilities, logger);
- var dao = new daoModule.DaoManagerModule(constants, utilities, logger);
- var plugins = new pluginsModule.PluginsManagerModule(constants, utilities, logger, dao);
-
+
this.constants = constants;
this.utilities = utilities;
this.logger = logger;
this.credentials = credentials;
- this.dao = dao;
- this.plugins = plugins;
/* Use object to store config options */
constants.globals = {};
@@ -80,5 +76,7 @@ nodeMonitor.init(function () {
}
console.log('Running on platform: ' + process.platform.toString());
*/
+ var dao = new daoModule.DaoManagerModule(constants, utilities, logger);
+ var plugins = new pluginsModule.PluginsManagerModule(nodeMonitor.constants, nodeMonitor.utilities, nodeMonitor.logger, nodeMonitor.dao);
nodeMonitor.plugins.start();
});
View
6 submodules/utilities.js
@@ -17,7 +17,7 @@ UtilitiesManagerModule.prototype.parseCommandLineOptions = function (callback) {
}
count++;
});
- callback();
+ callback(Module.constants.globals);
};
UtilitiesManagerModule.prototype.parseConfig = function (configFile, callback) {
@@ -36,7 +36,7 @@ UtilitiesManagerModule.prototype.parseConfig = function (configFile, callback) {
/* console.log('Read config parameter: ' + params[0] + ', with value: ' + params[1]); */
}
}
- callback();
+ callback(Module.constants.globals);
});
};
@@ -61,7 +61,7 @@ UtilitiesManagerModule.prototype.autoPopulate = function (callback) {
Module.constants.globals[parameter] = stdout;
}
});
- callback();
+ callback(Module.constants.globals);
});
};

0 comments on commit 24ad14c

Please sign in to comment.
Something went wrong with that request. Please try again.