Sha256: 009d0ae63100f0b38e685a60f98feb2c1db0d1b0358d2259c7013bc10a127281

Contents?: true

Size: 468 Bytes

Versions: 4

Compression:

Stored size: 468 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

4 entries across 4 versions & 1 rubygems

Version Path
roo_on_rails-1.3.1 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.3.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.2.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb
roo_on_rails-1.1.0 lib/roo_on_rails/checks/heroku/toolbelt_installed.rb