Method: Puppet::Pops::Loader::ModuleLoaders.system_loader_from
- Defined in:
- lib/puppet/pops/loader/module_loaders.rb
.system_loader_from(parent_loader, loaders) ⇒ 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.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/puppet/pops/loader/module_loaders.rb', line 40 def self.system_loader_from(parent_loader, loaders) # Puppet system may be installed in a fixed location via RPM, installed as a Gem, via source etc. # The only way to find this across the different ways puppet can be installed is # to search up the path from this source file's __FILE__ location until it finds the base of # puppet. # puppet_lib = File.realpath(File.join(File.dirname(__FILE__), '../../..')) LibRootedFileBased.new(parent_loader, loaders, nil, puppet_lib, # may or may not have a 'lib' above 'puppet' 'puppet_system', [:func_4x, :func_3x, :datatype] # only load ruby functions and types from "puppet" ) end |