class RooOnRails::Checks::Heroku::Token
Output context:
-
heroku.api_client: a connected PlatformAPI client
Public Instance Methods
call()
click to toggle source
# File lib/roo_on_rails/checks/heroku/token.rb, line 17 def call status, token = shell.run "heroku auth:token" fail! "could not get a token" unless status context.heroku!.api_client = PlatformAPI.connect_oauth(token.strip) pass "connected to Heroku's API" end
intro()
click to toggle source
# File lib/roo_on_rails/checks/heroku/token.rb, line 13 def intro "Obtaining Heroku auth token..." end