Sha256: 7c4d1ba1f6570ca0e0561706b57ae00d63cf4f6588649db6caca8d17ea9ead90
Contents?: true
Size: 325 Bytes
Versions: 9
Compression:
Stored size: 325 Bytes
Contents
class Specinfra::Command::Solaris::Base::Host < Specinfra::Command::Base::Host def check_is_reachable(host, port, proto, timeout) if port.nil? "ping -n #{escape(host)} #{escape(timeout)}" else "nc -vvvvz#{escape(proto[0].chr)} -w #{escape(timeout)} #{escape(host)} #{escape(port)}" end end end
Version data entries
9 entries across 9 versions & 1 rubygems