Method: Puppet::Parser::TypeLoader#import_all

Defined in:
lib/puppet/parser/type_loader.rb

#import_allObject

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.

Load all of the manifest files in all known modules.



38
39
40
41
42
43
44
45
# File 'lib/puppet/parser/type_loader.rb', line 38

def import_all
  # And then load all files from each module, but (relying on system
  # behavior) only load files from the first module of a given name.  E.g.,
  # given first/foo and second/foo, only files from first/foo will be loaded.
  environment.modules.each do |mod|
    load_files(mod.name, mod.all_manifests)
  end
end