allow settings to be applied from the filesystem
This commit is contained in:
parent
a419a3a87d
commit
039a761eaf
|
@ -74,6 +74,16 @@ async.waterfall([
|
||||||
// Call loadSettings hook
|
// Call loadSettings hook
|
||||||
hooks.aCallAll("loadSettings", { settings: settings });
|
hooks.aCallAll("loadSettings", { settings: settings });
|
||||||
|
|
||||||
|
// Call applySettings hook
|
||||||
|
hooks.aCallAll("applySettings", settings, function(err, newSettings){
|
||||||
|
if(!newSettings) return;
|
||||||
|
newSettings.forEach(function (settingsBlob){
|
||||||
|
for (var setting in settingsBlob){
|
||||||
|
settings[setting] = settingsBlob[setting];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
});
|
||||||
|
console.log(settings);
|
||||||
callback();
|
callback();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue