Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Easy way to get ready-to-go Heroku::API instance #23

Open
danp opened this issue Aug 10, 2012 · 1 comment
Open

Easy way to get ready-to-go Heroku::API instance #23

danp opened this issue Aug 10, 2012 · 1 comment

Comments

@danp
Copy link
Contributor

danp commented Aug 10, 2012

Ref heroku/legacy-cli#508

I currently have the heroku gem in a project's bundle because it has Heroku::Auth.api which makes it really easy to get a ready-to-use Heroku::API instance. I don't have to worry about netrc and other stuff.

It would be nice if heroku.rb itself or another gem outside the main CLI gem provided what is in Heroku::Auth so I could easily get a Heroku::API instance without bringing in the entire CLI.

It's possible this is complicated by plugins that change the auth process.

@geemus
Copy link
Contributor

geemus commented Aug 14, 2012

@dpiddy - how about HEROKU_API_KEY. If that is set then Heroku::API.new should just work I think. Granted it doesn't deal with netrc and the like, but seems fairly close in terms of simplicity. We can possibly do better, but I don't necessarily want to add a netrc dependency here. Maybe it should be a separate little gem that is just a shim for hooking together API with netrc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants