Class: RooOnRails::Checks::Heroku::ToolbeltInstalled

Inherits:
Base
  • Object
show all
Defined in:
lib/roo_on_rails/checks/heroku/toolbelt_installed.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



11
12
13
14
15
16
17
18
# 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

#introObject



7
8
9
# File 'lib/roo_on_rails/checks/heroku/toolbelt_installed.rb', line 7

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