Class: RooOnRails::Checks::Heroku::ToolbeltWorking

Inherits:
Base
  • Object
show all
Defined in:
lib/roo_on_rails/checks/heroku/toolbelt_working.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, requires, #run

Methods included from RooOnRails::Checks::Helpers

#bold, included

Constructor Details

This class inherits a constructor from RooOnRails::Checks::Base

Instance Method Details

#callObject



14
15
16
17
18
19
20
# File 'lib/roo_on_rails/checks/heroku/toolbelt_working.rb', line 14

def call
  if shell.run? 'heroku status > /dev/null'
    pass 'read heroku status'
  else
    fail! "could not run 'heroku status'"
  end
end

#introObject



10
11
12
# File 'lib/roo_on_rails/checks/heroku/toolbelt_working.rb', line 10

def intro
  "Checking if the Heroku Toolbelt is working..."
end