in lib/twurl/account_information_controller.rb [4:20]
def dispatch
rcfile = OAuthClient.rcfile
if rcfile.empty?
CLI.puts NO_AUTHORIZED_ACCOUNTS_MESSAGE
else
profiles = rcfile.profiles
profiles.keys.sort.each do |account_name|
CLI.puts account_name
profiles[account_name].each do |consumer_key, _|
account_summary = " #{consumer_key}"
account_summary << " (default)" if rcfile.default_profile == [account_name, consumer_key]
CLI.puts account_summary
end
end
end
end