Method: Specinfra::Command::Freebsd::Base::Port.check_is_listening
- Defined in:
- lib/specinfra/command/freebsd/base/port.rb
permalink .check_is_listening(port, options = {}) ⇒ Object
[View source]
3 4 5 6 |
# File 'lib/specinfra/command/freebsd/base/port.rb', line 3 def check_is_listening(port, ={}) regexp = ":#{port} " "sockstat -46l -p #{port} | grep -- #{escape(regexp)}" end |