Sha256: 6d9a074d0be98c1eab3c3a98285c48be61053f644a46e0677e65e2b0b12e4c73
Contents?: true
Size: 804 Bytes
Versions: 10
Compression:
Stored size: 804 Bytes
Contents
module Hobo module Lib module HostCheck class << self include Hobo::Lib::HostCheck def check opts = {} opts = { :filter => nil, :raise => false }.merge(opts) results = {} methods = Hobo::Lib::HostCheck.public_instance_methods(false) methods.each do |method| next if opts[:filter] && !method.match(opts[:filter]) if opts[:raise] self.send method, opts else begin self.send method, opts results[method] = :ok rescue Hobo::Error => error results[method] = error end end end return results end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems