class Puppet::Util::RubyGems::Gems18Source

For RubyGems >= 1.8.0 @api private

Public Instance Methods

clear_paths() click to toggle source
   # File lib/puppet/util/rubygems.rb
53 def clear_paths
54   Gem.clear_paths
55 end
directories() click to toggle source
   # File lib/puppet/util/rubygems.rb
41 def directories
42   # `require 'mygem'` will consider and potentially load
43   # prerelease gems, so we need to match that behavior.
44   #
45   # Just load the stub which points to the gem path, and
46   # delay loading the full specification until if/when the
47   # gem is required.
48   Gem::Specification.stubs.collect do |spec|
49     File.join(spec.full_gem_path, 'lib')
50   end
51 end