This file is indexed.

/usr/lib/ruby/vendor_ruby/specinfra/command/solaris/base/port.rb is in ruby-specinfra 2.66.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
class Specinfra::Command::Solaris::Base::Port < Specinfra::Command::Base::Port
  class << self
    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
end