This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Revert "remove unnecesary api client initialization, fixes heroku/dx#136

"

This reverts commit f04c9e7.
  • Loading branch information...
geemus committed May 25, 2012
1 parent fa7ca89 commit a93a7eda1918dc1e61ac20388a7797ae4b152516
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/heroku/auth.rb
View
@@ -69,6 +69,8 @@ def password # :nodoc:
end
def api_key(user = get_credentials[0], password = get_credentials[1])
+ full_host = (host =~ /^http/) ? host : "https://api.#{host}"
+ api = Heroku::API.new(:host => URI.parse(full_host).host)
api.post_login(user, password).body["api_key"]
end

0 comments on commit a93a7ed

Please sign in to comment.