Class Puppet::Provider
In: lib/puppet/provider.rb
Parent: Object

The container class for implementations.

Methods

Included Modules

Puppet::Util Puppet::Util::Errors Puppet::Util::Warnings Puppet::Util Puppet::Util::Docs Puppet::Util::Logging

Attributes

doc  [W] 
model  [R]  LAK 2007-05-09: Keep the model stuff around for backward compatibility
model  [R]  LAK 2007-05-09: Keep the model stuff around for backward compatibility
name  [RW] 
resource  [RW] 
resource_type  [RW] 
source  [W]  The source parameter exists so that providers using the same source can specify this, so reading doesn‘t attempt to read the same package multiple times.

Public Class methods

Define commands that are not optional.

Is the provided feature a declared feature?

Does this implementation match all of the default requirements? If defaults are empty, we return false.

Store how to determine defaults.

The method for returning a list of provider instances. Note that it returns providers, preferably with values already filled in, not resources.

Create the methods for a given command.

Create getter/setter methods for each property our resource type supports. They all get stored in @property_hash. This method is useful for those providers that use prefetch and flush.

Create getter/setter methods for each property our resource type supports. They all get stored in @property_hash. This method is useful for those providers that use prefetch and flush.

Define one or more binaries we‘ll be using. If a block is passed, yield the name and path to the block (really only used by ‘commands’).

Retrieve the data source. Defaults to the provider name.

Does this provider support the specified parameter?

Public Instance methods

Remove the reference to the resource, so GC can clean up.

Retrieve a named command.

Get a parameter value.

Set passed params as the current values.

[Validate]