Allow partial overwrites

This commit is contained in:
David Heinemeier Hansson
2023-01-23 14:12:43 +01:00
parent 05f84cdbef
commit 15495fb48c

View File

@@ -15,7 +15,7 @@ class Mrsk::Configuration
def create_from(base_config_file, destination: nil, version: "missing")
new(load_config_file(base_config_file).tap do |config|
if destination
config.merge! \
config.deep_merge! \
load_config_file destination_config_file(base_config_file, destination)
end
end, version: version)