lib/roku_builder/config.rb in roku_builder-4.22.9 vs lib/roku_builder/config.rb in roku_builder-4.23.0
- old
+ new
@@ -124,10 +124,15 @@
def merge_local_config
local_config_path = "./.roku_config.json"
if File.exist?(local_config_path) and !@loaded_configs.include?(File.expand_path(local_config_path))
local_config_hash = read_config(File.open(local_config_path))
add_missing_directories(local_config_hash)
+ local_sub_configs = "./.roku_config/*.json"
@config = @config.deep_merge(local_config_hash)
+ Dir.glob("./.roku_config/*.json").each do |sub_config_path|
+ sub_config_hash = read_config(File.open(sub_config_path))
+ @config = @config.deep_merge(sub_config_hash)
+ end
end
end
def add_missing_directories(local_config)
if local_config[:projects]