The Ruby client for Heroku API
The better Ruby client for Heroku API, built on top of official
heroku.rb
gem.
Add this line to your application’s Gemfile:
gem 'ruroku'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruroku
Start by initiating a connection with Heroku API:
heroku = Ruroku::API.new api_key: YOUR_HEROKU_API_KEY
(You can leave out :api_key
if ENV['HEROKU_API_KEY']
is set
instead.)
Now you can interact with Heroku API using Ruroku.
It has support of:
Read more on Ruroku README.
For practice or testing you can also use a simulated Heroku:
require 'ruroku'
heroku = Ruroku::API.new api_key: API_KEY, mock: true
After that commands should still behave the same, but they will only modify some local data instead of updating the state of things on Heroku.
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)Released under the MIT license.