Method: Puppet::Pops::Loaders.clear

Defined in:
lib/puppet/pops/loaders.rb

.clearObject

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.

Clears the cached static and puppet_system loaders (to enable testing)



82
83
84
85
86
87
# File 'lib/puppet/pops/loaders.rb', line 82

def self.clear
  @@static_loader = nil
  Puppet::Pops::Types::TypeFactory.clear
  Model.class_variable_set(:@@pcore_ast_initialized, false)
  Model.register_pcore_types
end