def load_config
@config_location ||= "~/.aeolus-cli"
begin
file_str = read_file(@config_location)
if is_file?(@config_location) && !file_str.include?(":url")
lines = File.readlines(File.expand_path(@config_location)).map do |line|
"#" + line
end
File.open(File.expand_path(@config_location), 'w') do |file|
file.puts lines
end
write_file
end
write_file unless is_file?(@config_location)
YAML::load(File.open(File.expand_path(@config_location)))
rescue Errno::ENOENT
raise "Unable to locate or write configuration file: \"" + @config_location + "\""
end
end