* Update the context from the refreshed config * then persist the changes on each affected engines * Returns the list of affected artifacts/engines
(conf: LoadConfigResult, fn?: (conf: LoadConfigResult) => void)
| 28 | * Returns the list of affected artifacts/engines |
| 29 | */ |
| 30 | refresh(conf: LoadConfigResult, fn?: (conf: LoadConfigResult) => void) { |
| 31 | const affected = diffConfigs(() => conf.deserialize(), this.prevConfig) |
| 32 | |
| 33 | if (!affected.hasConfigChanged || !this.prevConfig) return affected |
| 34 | |
| 35 | fn?.(conf) |
| 36 | this.prevConfig = conf.deserialize() |
| 37 | |
| 38 | return affected |
| 39 | } |
| 40 | } |
no test coverage detected