Method: Specinfra::Command::Module::Ss#check_is_listening
- Defined in:
- lib/specinfra/command/module/ss.rb
#check_is_listening(port, options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/specinfra/command/module/ss.rb', line 5 def check_is_listening(port, ={}) pattern = ":#{port} " pattern = " #{inaddr_any_to_asterisk([:local_address])}#{pattern}" if [:local_address] "ss #{([:protocol])} | grep -- #{escape(pattern)}" end |