lib/goodcheck/commands/config_loading.rb in goodcheck-1.3.1 vs lib/goodcheck/commands/config_loading.rb in goodcheck-1.4.0
- old
+ new
@@ -1,12 +1,13 @@
module Goodcheck
module Commands
module ConfigLoading
attr_reader :config
- def load_config!
+ def load_config!(force_download:, cache_path:)
+ import_loader = ImportLoader.new(cache_path: cache_path, force_download: force_download, config_path: config_path)
content = JSON.parse(JSON.dump(YAML.load(config_path.read, config_path.to_s)), symbolize_names: true)
- loader = ConfigLoader.new(path: config_path, content: content, stderr: stderr)
+ loader = ConfigLoader.new(path: config_path, content: content, stderr: stderr, import_loader: import_loader)
@config = loader.load
end
end
end
end