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