Sha256: bc2d96851a17b59e2100c7d3f09a75c1ba1b867fe8339a5214d67fa8b1a2fbad
Contents?: true
Size: 419 Bytes
Versions: 381
Compression:
Stored size: 419 Bytes
Contents
class Specinfra::Command::Solaris::V10::Host < Specinfra::Command::Solaris::Base::Host class << self def check_is_reachable(host, port, proto, timeout) if port.nil? "ping -n #{escape(host)} #{escape(timeout)}" elsif proto == 'tcp' "echo 'quit' | mconnect -p #{escape(port)} #{escape(host)} > /dev/null 2>&1" else raise NotImplementedError.new end end end end
Version data entries
381 entries across 381 versions & 3 rubygems