Last Updated: February 20, 2016
·
1.709K
· goshakkk

Ruroku, the better Ruby client for Heroku API

Working with Heroku API from Ruby code is fun again!

heroku = Ruroku::API.new api_key: API_KEY

Now get a specific app:

app = heroku['app-name']

Add an addon:

app.addons.add 'mongolab:starter'

Update an env var:

app.config_vars['STRIPE_API_KEY'] = '11010010100010010'

Add a domain:

app.domains.add '*.app-name.com'

Scale web & worker processes

app.processes.scale 'web', 5
app.processes.scale 'worker', 10

Now rollback to the first version:

app.releases['v1'].rollback

Of course, you can read logs, too:

app.logs

Like it?

View on Github