Method: Puppet::Environments::Cached#clear

Defined in:
lib/puppet/environments.rb

#clear(name) ⇒ Object

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 cache of the environment with the given name. (The intention is that this could be used from a MANUAL cache eviction command (TBD)



441
442
443
444
445
# File 'lib/puppet/environments.rb', line 441

def clear(name)
  name = name.to_sym
  entry = @cache[name]
  clear_entry(name, entry) if entry
end