Class Puppet::Transaction
In: lib/puppet/transaction.rb
Parent: Object

Methods

Included Modules

Puppet::Util

Attributes

catalog  [RW] 
component  [RW] 
configurator  [RW] 
events  [R]  The list of events generated in this transaction.
ignoreschedules  [RW] 
report  [R]  The report, once generated.
sorted_resources  [RW] 

Public Class methods

this should only be called by a Puppet::Type::Component resource now and it should only receive an array

Public Instance methods

Add some additional times for reporting

Check to see if we should actually allow processing, but this really only matters when a resource is getting deleted.

Are there any failed resources in this transaction?

Apply all changes for a resource, returning a list of the events generated.

Apply each change in turn.

Find all of the changed resources.

Do any necessary cleanup. If we don‘t get rid of the graphs, the contained resources might never get cleaned up.

Are we deleting this resource?

See if the resource generates new resources at evaluation time.

Evaluate a single resource.

This method does all the actual work of running a transaction. It collects all of the changes, executes them, and responds to any necessary events.

Determine whether a given resource has failed.

Does this resource have any failed dependencies?

Collect any dynamically generated resources. This method is called before the transaction starts.

A general method for recursively generating new resources from a resource.

Generate a transaction report.

Should we ignore tags?

Copy an important relationships from the parent to the newly-generated child resource.

Is this resource tagged appropriately?

Prefetch any providers that support it. We don‘t support prefetching types, just providers.

Prepare to evaluate the resources in a transaction.

Roll all completed changes back.

Is the resource currently scheduled?

Send off the transaction report.

Set an edge to be triggered when we evaluate its target.

Should this resource be skipped?

The tags we should be checking.

Are there any edges that target this resource?

Trigger any subscriptions to a child. This does an upwardly recursive search — it triggers the passed resource, but also the resource‘s parent and so on up the tree.

[Validate]