class RooOnRails::Checks::Heroku::ToolbeltInstalled

Public Instance Methods

call() click to toggle source
# File lib/roo_on_rails/checks/heroku/toolbelt_installed.rb, line 11
def call
  status, path = shell.run "which heroku"
  if status
    pass "found #{bold path.strip} binary"
  else
    fail! "'heroku' binary missing"
  end
end
intro() click to toggle source
# File lib/roo_on_rails/checks/heroku/toolbelt_installed.rb, line 7
def intro
  "Checking if the Heroku Toolbelt is installed..."
end