PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/puppet_gem.rb |
Puppet::Type.type(:package).provide :puppet_gem, :parent => :gem do
desc "Puppet Ruby Gem support. This provider is useful for managing
gems needed by the ruby provided in the puppet-agent package."
has_feature :versionable, :install_options, :uninstall_options
confine :true => Puppet.runtime[:facter].value(:aio_agent_version)
def self.windows_gemcmd
puppet_dir = Puppet::Util.get_env('PUPPET_DIR')
if puppet_dir
File.join(Puppet::Util.get_env('PUPPET_DIR').to_s, 'bin', 'gem.bat')
else
File.join(Gem.default_bindir, 'gem.bat')
end
end
if Puppet::Util::Platform.windows?
commands :gemcmd => windows_gemcmd
else
commands :gemcmd => "/opt/puppetlabs/puppet/bin/gem"
end
def uninstall
super
Puppet.debug("Invalidating rubygems cache after uninstalling gem '#{resource[:name]}'")
Puppet::Util::Autoload.gem_source.clear_paths
end
def self.execute_gem_command(command, command_options, custom_environment = {})
custom_environment['PKG_CONFIG_PATH'] = '/opt/puppetlabs/puppet/lib/pkgconfig' unless Puppet::Util::Platform.windows?
super(command, command_options, custom_environment)
end
end