Method: Puppet::Pops::Loader::ModuleLoaders.cached_loader_from

Defined in:
lib/puppet/pops/loader/module_loaders.rb

.cached_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.

This is exactly the same as the #system_loader_from method, but the argument for path is changed to location where pluginsync stores functions. It also accepts definitions in any namespace since pluginsync places all of them in the same directory.



30
31
32
33
34
35
36
37
38
# File 'lib/puppet/pops/loader/module_loaders.rb', line 30

def self.cached_loader_from(parent_loader, loaders)
  LibRootedFileBased.new(parent_loader,
    loaders,
    NAMESPACE_WILDCARD,
    Puppet[:libdir],
    'cached_puppet_lib',
    [:func_4x, :func_3x, :datatype]
  )
end