* scan and load config files in the same manner that config.js does * * @see ConfigUtils.setModuleDefaults() * @param {{name: string, config: any}[]=} additional additional values to populate (usually from NODE_CONFIG) * @returns {object} - config data
(additional)
| 1100 | * @returns {object} - config data |
| 1101 | */ |
| 1102 | scan(additional) { |
| 1103 | Util.loadFileConfigs(this); |
| 1104 | |
| 1105 | if (additional) { |
| 1106 | for (let {name, config} of additional) { |
| 1107 | this.addConfig(name, config); |
| 1108 | } |
| 1109 | } |
| 1110 | |
| 1111 | // Override with environment variables if there is a custom-environment-variables.EXT mapping file |
| 1112 | this.loadCustomEnvVars(); |
| 1113 | |
| 1114 | Util.resolveDeferredConfigs(this.config); |
| 1115 | |
| 1116 | return this.config; |
| 1117 | } |
| 1118 | |
| 1119 | /** |
| 1120 | * Load a file and add it to the configuration |
no test coverage detected