Sha256: ce75ecfc09493d7b426654cc51ada911aa7848c3cd18a4dda72e14fc4655538b
Contents?: true
Size: 423 Bytes
Versions: 9
Compression:
Stored size: 423 Bytes
Contents
class Specinfra::Command::Solaris::Base::Port < Specinfra::Command::Base::Port def check_is_listening(port, opts=nil) regexp = "\\.#{port} " "netstat -an 2> /dev/null | grep -- LISTEN | grep -- #{escape(regexp)}" end def check_is_listening_with_protocol(port, protocol) regexp = ".*\\.#{port} " "netstat -an -P #{escape(protocol)} 2> /dev/null | grep -- LISTEN | grep -- #{escape(regexp)}" end end
Version data entries
9 entries across 9 versions & 1 rubygems