Class Puppet::Util::Autoload
In: lib/puppet/util/autoload.rb
Parent: Object

Autoload paths, either based on names or all at once.

Methods

Included Modules

Puppet::Util Puppet::Util::Warnings Puppet::Util::Cacher Puppet::Util::Autoload::FileCache

Attributes

autoloaders  [R] 
object  [RW] 
objwarn  [RW] 
path  [RW] 
wrap  [RW] 

Public Class methods

List all loaded files.

Save the fact that a given path has been loaded. This is so we can load downloaded plugins if they‘ve already been loaded into memory.

Has a given path been loaded? This is used for testing whether a changed file should be loaded or just ignored. This is only used in network/client/master, when downloading plugins, to see if a given plugin is currently loaded and thus should be reloaded.

Public Instance methods

Load a single plugin by name. We use ‘load’ here so we can reload a given plugin.

Load all instances that we can. This uses require, rather than load, so that already-loaded files don‘t get reloaded unnecessarily.

Mark the named object as loaded. Note that this supports unqualified queries, while we store the result as a qualified query in the class.

Indicate whether the specfied plugin has been loaded.

[Validate]