resources/repository.rb
#
# Idempotently install the `pkgutil` utility.
#
Idempotently install the `pkgutil` utility.
Idempotently install the ` pkgutil ` utility .
def ensure_pkgutil_installed!
    node.run_state[:pkgutil_installed] ||= begin
      pkgutil_path = ::File.join(Chef::Config[:file_cache_path], 'pkgutil.pkg')
      remote_file pkgutil_path do
        source 'http://mirror.opencsw.org/opencsw/pkgutil.pkg'
      end
      execute "pkgadd -d #{pkgutil_path} all" do
        not_if 'pkginfo -l CSWpkgutil'
      end
      true
    end
  end
def ensure_pkgutil_installed! node . run_state [ :pkgutil_installed ] ||= begin pkgutil_path = :: File . join ( Chef :: Config [ :file_cache_path ] , 'pkgutil.pkg' ) remote_file pkgutil_path do source 'http://mirror.opencsw.org/opencsw/pkgutil.pkg' end execute "pkgadd -d #{pkgutil_path} all" do not_if 'pkginfo -l CSWpkgutil' end true end end
Idempotently install the `pkgutil` utility.
Idempotently install the ` pkgutil ` utility .