Sha256: 9beb4622c2a82043846cb04f34edb26bf91f2c8114c3a030e48674a7f0c71099
Contents?: true
Size: 366 Bytes
Versions: 3
Compression:
Stored size: 366 Bytes
Contents
class Specinfra::Command::Freebsd::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
specinfra-2.41.1 | lib/specinfra/command/freebsd/base/host.rb |
specinfra-2.41.0 | lib/specinfra/command/freebsd/base/host.rb |
specinfra-2.40.2 | lib/specinfra/command/freebsd/base/host.rb |