Merge pull request #2840 from ether/applySettings
allow settings to be applied from the filesystem
This commit is contained in:
commit
a913f57994
1 changed files with 12 additions and 3 deletions
|
@ -74,6 +74,15 @@ 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];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
});
|
||||||
callback();
|
callback();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue