We need a better way of checking whether or not the login was successful. Currently, we are just making a arbitrary API request to see if it works. If it works, then we say the login was successful; otherwise, we say it failed.
I'm sure there is a better way to do this, already built into the API.
@client = Octokit::Client.new(:login => username, :password => password)
begin
@client.authorizations
rescue Octokit::Unauthorized
puts "error: auth failed"
exit
end