lib/licit/command.rb in licit-0.2 vs lib/licit/command.rb in licit-0.2.1
- old
+ new
@@ -28,10 +28,15 @@
config_file = find_file ['licit.yml', 'config/licit.yml']
unless config_file
puts "Could not find licit.yml config file"
exit 1
end
- YAML.load_file(config_file).each_with_object({}) { |(k,v), h| h[k.to_sym] = v }
+
+ config = {}
+ YAML.load_file(config_file).each do |key, value|
+ config[key.to_sym] = value
+ end
+ config
end
def find_file probes
probes.each do |file|
return file if File.exist? file