Class: Puppet::Pops::Loader::SimpleEnvironmentLoader

Inherits:
BaseLoader show all
Defined in:
lib/puppet/pops/loader/simple_environment_loader.rb

Overview

SimpleEnvironmentLoader

This loader does not load anything and it is populated by the bootstrapping logic that loads the site.pp or equivalent for an environment. It does not restrict the names of what it may contain, and what is loaded here overrides any child loaders (modules).

Constant Summary

Constants inherited from Loader

Loader::LOADABLE_KINDS

Instance Attribute Summary collapse

Attributes inherited from BaseLoader

#parent

Attributes inherited from Loader

#environment, #loader_name

Instance Method Summary collapse

Methods inherited from BaseLoader

#add_entry, #discover, #get_entry, #initialize, #load_typed, #loaded_entry, #promote_entry, #remove_entry, #set_entry

Methods inherited from Loader

#[], #discover, #get_entry, #initialize, #inspect, #load, #load_typed, #loadables, #loaded_entry, #parent, #set_entry, #synchronize

Constructor Details

This class inherits a constructor from Puppet::Pops::Loader::BaseLoader

Instance Attribute Details

#private_loaderObject



10
11
12
# File 'lib/puppet/pops/loader/simple_environment_loader.rb', line 10

def private_loader
  @private_loader
end

Instance Method Details

#find(typed_name) ⇒ Object

Never finds anything, everything “loaded” is set externally



13
14
15
# File 'lib/puppet/pops/loader/simple_environment_loader.rb', line 13

def find(typed_name)
  nil
end

#to_sObject



17
18
19
# File 'lib/puppet/pops/loader/simple_environment_loader.rb', line 17

def to_s
  "(SimpleEnvironmentLoader '#{loader_name}')"
end