Provide any common methods that loaders should have. It requires that any classes that include this module implement get @api private
# File lib/puppet/environments.rb, line 42 def clear_all root = Puppet.lookup(:root_environment) { nil } root.instance_variable_set(:@future_parser, nil) unless root.nil? end
@!macro loader_get_or_fail
# File lib/puppet/environments.rb, line 33 def get!(name) environment = get(name) if environment environment else raise EnvironmentNotFound, name end end