Sha256: 99edf873b127cb8e6ff12ae64cc8a7295a8e48c8e80cc97ac32dd2e7f5d01ca0

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

module Hobo
  module Lib
    module HostCheck
      class << self
        include Hobo::Lib::HostCheck

        def check silent = true
          methods = Hobo::Lib::HostCheck.public_instance_methods(false)
          methods.each do |method|
            name = method.to_s.gsub('_', ' ')
            name[0] = name[0].upcase
            begin
              self.send method
              Hobo.ui.success "#{name}: OK" unless silent
            rescue
              Hobo.ui.error "#{name}: FAILED" unless silent
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hobo-inviqa-0.0.7 lib/hobo/lib/host_check.rb
hobo-inviqa-0.0.6 lib/hobo/lib/host_check.rb