Method: Lookbook::ConfigLoader#call
- Defined in:
- lib/lookbook/services/config_loader.rb
#call ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/lookbook/services/config_loader.rb', line 10 def call if file.exist? config = YAML.load_file(file).deep_symbolize_keys env_config = config[:shared].to_h.deep_merge(config[env].to_h) Store.new(env_config) else raise ConfigError.new("Could not load configuration. No such file - #{file}") end end |