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

The simplest resource class. Eventually it will function as the base class for all resource-like behaviour.

Methods

[]   []=   builtin?   builtin_type?   each   from_pson   new   ref   title   to_hash   to_manifest   to_pson   to_pson_data_hash   to_ral   to_ref   to_s   to_trans   to_transobject   type  

Included Modules

Puppet::Util::Tagging Enumerable

Constants

ATTRIBUTES = [:file, :line, :exported]

Attributes

catalog  [RW] 
exported  [RW] 
file  [RW] 
line  [RW] 
title  [W] 
type  [W] 
virtual  [RW] 

Public Class methods

Public Instance methods

Return a given parameter‘s value. Converts all passed names to lower-case symbols.

Set a given parameter. Converts all passed names to lower-case symbols.

Compatibility method.

Is this a builtin resource type?

Iterate over each param/value pair, as required for Enumerable.

Provide a reference to our resource in the canonical form.

Get our title information from the reference, since it will canonize it for us.

Produce a simple hash of our parameters.

Convert our resource to Puppet code.

Convert our resource to a RAL resource instance. Creates component instances for resource types that don‘t exist.

Translate our object to a backward-compatible transportable object.

Create an old-style TransObject instance, for builtin resource types.

Get our type information from the reference, since it will canonize it for us.

[Validate]