This file is indexed.

/usr/lib/ruby/vendor_ruby/specinfra/command/smartos/base/package.rb is in ruby-specinfra 2.35.1-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
class Specinfra::Command::Smartos::Base::Package < Specinfra::Command::Solaris::Base::Package
  class << self
    def check_is_installed(package, version=nil)
      cmd = "pkg_info -qE #{escape(package)}"
      if version
        cmd = "#{cmd}-#{escape(version)}"
      end
      cmd
    end

    def get_version(package, opts=nil)
      "pkg_info -E #{escape(package)} | awk -F '-' '{print $NF}'"
    end
  end
end