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-2.2.2 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-2.2.1 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-2.2.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-2.1.2 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-2.1.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-2.0.0.pre.pre.2 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-2.0.0.pre.pre.1 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.22.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.21.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.20.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.19.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.18.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.17.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.16.2 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.16.1 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.16.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.15.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.14.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.13.1 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.13.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb