This file is indexed.

/usr/lib/ruby/vendor_ruby/serverspec/type/host.rb is in ruby-serverspec 2.18.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
14
15
module Serverspec::Type
  class Host < Base
    def resolvable?(type)
      @runner.check_host_is_resolvable(@name, type)
    end

    def reachable?(port, proto, timeout)
      @runner.check_host_is_reachable(@name, port, proto, timeout)
    end

    def ipaddress
      @runner.get_host_ipaddress(@name).stdout.strip
    end
  end
end