Method: Puppet::Util::Settings#initialize

Defined in:
lib/vendor/puppet/util/settings.rb

#initializeSettings

Create a new collection of config settings.



169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/vendor/puppet/util/settings.rb', line 169

def initialize
  @config = {}
  @shortnames = {}

  @created = []
  @searchpath = nil

  # Mutex-like thing to protect @values
  @sync = Sync.new

  # Keep track of set values.
  @values = Hash.new { |hash, key| hash[key] = {} }

  # And keep a per-environment cache
  @cache = Hash.new { |hash, key| hash[key] = {} }

  # The list of sections we've used.
  @used = []
end