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

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/solaris/base/port.rb
specinfra-2.0.0.beta14 lib/specinfra/command/solaris/base/port.rb
specinfra-2.0.0.beta13 lib/specinfra/command/solaris/base/port.rb
specinfra-2.0.0.beta12 lib/specinfra/command/solaris/base/port.rb
specinfra-2.0.0.beta11 lib/specinfra/command/solaris/base/port.rb
specinfra-2.0.0.beta10 lib/specinfra/command/solaris/base/port.rb
specinfra-2.0.0.beta9 lib/specinfra/command/solaris/base/port.rb
specinfra-2.0.0.beta8 lib/specinfra/command/solaris/base/port.rb
specinfra-2.0.0.beta7 lib/specinfra/command/solaris/base/port.rb