config.js
* @author Hermann Mayer <hermann.mayer92@gmail.com>
var Store = require('../store');
var Config = require('../config');
ConfigStore.super_.call(this);
// Try to load the application config if exists
if (fs.existsSync(process.cwd() + '/app/config/application.js')) {
this.load(process.cwd() + '/app/config/application.js', 'app');
util.inherits(ConfigStore, Store);
* Load a configuration from a given path
* @param {String} path - Path to the config to load
* @param {String} key - Key to use for later addressing
* @param {Object} [options] - Options to pass to the config
ConfigStore.prototype.load = function(path, key, options)
throw new Error('Path was not given');
throw new Error('Key was not given');
var config = new Config(options);
* Create a new configuration and push it into the store.
* @param {String} key - Key to use for later addressing
* @param {Object} [options] - Options to pass to the config
ConfigStore.prototype.new = function(key, options)
throw new Error('Key was not given');