class Specinfra::Command::Openbsd::Base::Port
Public Class Methods
check_is_listening(port, opts={})
click to toggle source
# File lib/specinfra/command/openbsd/base/port.rb, line 3 def check_is_listening(port, opts={}) "netstat -nat -f inet | egrep '((tcp|udp).*\.#{port}.*LISTEN$)'" end