Sha256: 5e3a9d16bdb65dfc5faaa1c11807381e161561271c5744fc82978cbf3af47b37
Contents?: true
Size: 365 Bytes
Versions: 113
Compression:
Stored size: 365 Bytes
Contents
class Specinfra::Command::Darwin::Base::Host < Specinfra::Command::Base::Host class << self def check_is_reachable(host, port, proto, timeout) if port.nil? "ping -t #{escape(timeout)} -c 2 -n #{escape(host)}" else "nc -vvvvz#{escape(proto[0].chr)} #{escape(host)} #{escape(port)} -w #{escape(timeout)}" end end end end
Version data entries
113 entries across 113 versions & 2 rubygems