Sha256: 90bdd7bc054e707a830ef6564f956872a8b5b108552d0470302118e763b7c07c

Contents?: true

Size: 467 Bytes

Versions: 31

Compression:

Stored size: 467 Bytes

Contents

require 'roo_on_rails/checks/base'

module RooOnRails
  module Checks
    module Heroku
      class ToolbeltInstalled < Base
        def intro
          "Checking if the Heroku Toolbelt is installed..."
        end

        def call
          status, path = shell.run "which heroku"
          if status
            pass "found #{bold path.strip} binary"
          else
            fail! "'heroku' binary missing"
          end
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
roo_on_rails-1.12.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.11.1 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.11.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.10.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.9.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.8.1 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.8.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.7.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.6.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.5.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.4.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb