File: port.rb

package info (click to toggle)
ruby-specinfra 2.94.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,464 kB
  • sloc: ruby: 10,562; makefile: 4
file content (8 lines) | stat: -rw-r--r-- 250 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
class Specinfra::Command::Aix::Base::Port < Specinfra::Command::Base::Port
  class << self
    def check_is_listening(port, options={})
      regexp = "*.#{port} "
      "netstat -an -f inet | awk '{print $4}' | grep  -- #{regexp}"
    end
  end
end