Method: Puppet::Pops::Loader::ModuleLoaders::FileBased#initialize

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

#initialize(parent_loader, loaders, module_name, path, loader_name, loadables = LOADABLE_KINDS) ⇒ FileBased

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.

Create a kind of ModuleLoader for one module (Puppet Module, or module like)

Parameters:

  • parent_loader (Loader)

    typically the loader for the environment or root

  • module_name (String)

    the name of the module (non qualified name), may be nil for “modules” only containing globals

  • path (String)

    the path to the root of the module (semantics defined by subclass)

  • loader_name (String)

    a name that identifies the loader



444
445
446
447
# File 'lib/puppet/pops/loader/module_loaders.rb', line 444

def initialize(parent_loader, loaders, module_name, path, loader_name, loadables = LOADABLE_KINDS)
  super
  @path_index = Set.new
end