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

#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

Constructor Details

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

Instance Attribute Details

#private_loaderObject


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

def private_loader
  @private_loader
end

Instance Method Details

#find(typed_name) ⇒ Object

Never finds anything, everything “loaded” is set externally


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

def find(typed_name)
  nil
end

#to_sObject


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

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