Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/td/command/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def account(op)

$stdout.puts "Authenticated successfully."

conf ||= Config.new
conf ||= Config::ConfigFile.new
conf["account.user"] = user_name
conf["account.apikey"] = client.apikey
conf['account.endpoint'] = endpoint if endpoint
Expand Down
2 changes: 1 addition & 1 deletion lib/td/command/apikey.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def apikey_set(op)
end
end

conf ||= Config.new
conf ||= Config::ConfigFile.new
conf.delete("account.user")
conf["account.apikey"] = apikey
conf.save
Expand Down
Loading