lib/arql/app.rb in arql-0.3.1 vs lib/arql/app.rb in arql-0.3.2
- old
+ new
@@ -66,9 +66,11 @@
port: local_ssh_proxy_port
}
end
def config
+ @config ||= YAML.load(IO.read(File.expand_path(@options.config_file)), aliases: true).with_indifferent_access
+ rescue ArgumentError
@config ||= YAML.load(IO.read(File.expand_path(@options.config_file))).with_indifferent_access
end
def selected_config
if @options.env.present? && !config[@options.env].present?