Class: Puppet::Util::RubyGems::Gems18Source Private
- Defined in:
- lib/puppet/util/rubygems.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
For RubyGems >= 1.8.0
Instance Method Summary collapse
- #clear_paths ⇒ Object private
- #directories ⇒ Object private
Methods inherited from Source
Instance Method Details
#clear_paths ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
54 55 56 |
# File 'lib/puppet/util/rubygems.rb', line 54 def clear_paths Gem.clear_paths end |
#directories ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/puppet/util/rubygems.rb', line 42 def directories # `require 'mygem'` will consider and potentially load # prerelease gems, so we need to match that behavior. # # Just load the stub which points to the gem path, and # delay loading the full specification until if/when the # gem is required. Gem::Specification.stubs.collect do |spec| File.join(spec.full_gem_path, 'lib') end end |