Add config getter
This commit is contained in:
parent
2055c76f98
commit
02d32a9e51
|
@ -100,6 +100,11 @@ function init(configPath, options, cb) {
|
|||
],
|
||||
function complete(err, mergedConfig) {
|
||||
exports.config = mergedConfig;
|
||||
|
||||
exports.config.get = function(path) {
|
||||
return _.get(exports.config, path);
|
||||
};
|
||||
|
||||
return cb(err);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue