Sha256: 815281fc1e7a44dcf63a5047ce5426d674369902ed87bddd902a080089e417f6
Contents?: true
Size: 803 Bytes
Versions: 7
Compression:
Stored size: 803 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
7 entries across 7 versions & 1 rubygems