Sha256: cf885d24782f7aa456419f427dd241d89893aad80b8968556ec8e65342abf2d2

Contents?: true

Size: 530 Bytes

Versions: 35

Compression:

Stored size: 530 Bytes

Contents

require 'roo_on_rails/checks/base'
require 'roo_on_rails/checks/heroku/toolbelt_installed'

module RooOnRails
  module Checks
    module Heroku
      class ToolbeltWorking < Base
        requires ToolbeltInstalled

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

        def call
          if shell.run? 'heroku status > /dev/null'
            pass 'read heroku status'
          else
            fail! "could not run 'heroku status'"
          end
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
roo_on_rails-1.12.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.11.1 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.11.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.10.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.9.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.8.1 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.8.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.7.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.6.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.5.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.4.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.3.1 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.3.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.2.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb
roo_on_rails-1.1.0 lib/roo_on_rails/checks/heroku/toolbelt_working.rb