Yeah, instantiating Heroku::Client is probably the best solution.
The constructor will get your user/password:
client = Heroku::Client.new("your@email", "secret")
client.config_vars("myapp").each { |key, val| ... }
You can also use your api key instead of the password.
On Mon, Apr 11, 2011 at 9:05 AM, dblock <[email protected]> wrote:
> Before I run the command and parse the output, is there a better way
> to get heroku variables programmatically (in a rake task)? I assume I
> can instantiate a Heroku::Client - but how do I do automatic
> authentication? Anyone has any code to share?
>
> Thx
> dB.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.