Class Puppet::Parser::Resource
In: lib/puppet/parser/resource.rb
Parent: Object

A resource that we‘re managing. This handles making sure that only subclasses can set parameters.

Methods

Included Modules

Puppet::FileCollection::Lookup Puppet::Util Puppet::Util::MethodHelper Puppet::Util::Errors Puppet::Util::Logging Puppet::Util::Tagging Puppet::Parser::YamlTrimmer

Attributes

catalog  [RW] 
evaluated  [R] 
exported  [R] 
override  [RW] 
params  [R] 
rails_id  [RW] 
scope  [RW] 
source  [RW] 
translated  [RW] 
virtual  [RW] 

Public Class methods

Determine whether the provided parameter name is a relationship parameter.

Public Instance methods

Retrieve the associated definition and evaluate it.

Mark this resource as both exported and virtual, or remove the exported mark.

Do any finishing work on this object, called before evaluation or before storage/translation.

Has this resource already been finished?

Is this resource modeling an isomorphic resource type?

Merge an override resource in. This will throw exceptions if any overrides aren‘t allowed.

Unless we‘re running >= 0.25, we‘re in compat mode.

Return the resource name, or the title if no name was specified.

This significantly reduces the number of calls to Puppet.[].

A temporary occasion, until I get paths in the scopes figured out.

Return the short version of our name.

Define a parameter in our resource. if we ever receive a parameter named ‘tag’, set the resource tags with its value.

Convert this resource to a RAL resource. We hackishly go via the transportable stuff.

Create a Puppet::Resource instance from this parser resource. We plan, at some point, on not needing to do this conversion, but it‘s sufficient for now.

Translate our object to a transportable object.

[Validate]