lib/cliutils/prefs.rb in cliutils-2.1.4 vs lib/cliutils/prefs.rb in cliutils-2.2.0
- old
+ new
@@ -52,10 +52,10 @@
if File.file?(data)
@config_path = data
data = YAML.load_file(data).deep_symbolize_keys
@prompts = _generate_prefs(data)
else
- fail "Invalid configuration file: #{ data }"
+ fail "Invalid configuration file: #{ data }"
end
when Hash
@config_path = nil
data = { prompts: data } unless data.keys[0] == :prompts
data.deep_symbolize_keys!