class HerokuVault::HerokuCommander

Public Class Methods

new() click to toggle source
# File lib/heroku_vault/heroku_commander.rb, line 5
def initialize
  @heroku = PlatformAPI.connect_oauth(ENV['HEROKU_TOKEN'])
end

Public Instance Methods

apply_config(app_name, body) click to toggle source
# File lib/heroku_vault/heroku_commander.rb, line 13
def apply_config(app_name, body)
  @heroku.config_var.update(app_name, body)
end
config_all(app_name) click to toggle source
# File lib/heroku_vault/heroku_commander.rb, line 9
def config_all(app_name)
  @heroku.config_var.info_for_app(app_name).to_json
end