Class Puppet::Resource::Reference
In: lib/puppet/parser/resource/reference.rb
lib/puppet/resource/reference.rb
Parent: Puppet::Resource::Reference

A simple class to canonize how we refer to and retrieve resources.

Methods

==   builtin?   builtin_type?   builtintype   definedtype   new   new   resolve   skip_for_yaml   title=   to_ref   to_s   to_trans_ref   type=   typeclass  

Included Modules

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

Attributes

builtin  [RW] 
catalog  [RW] 
file  [RW] 
line  [RW] 
scope  [RW] 
title  [R] 
type  [R] 

Public Class methods

Public Instance methods

Are we a builtin type?

Return the defined type for our obj. This can return classes, definitions or nodes.

Find our resource.

If the title has square brackets, treat it like a reference and set things appropriately; else, just set it.

Convert to the standard way of referring to resources.

Convert to the reference format that TransObject uses. Yay backward compatibility.

Canonize the type so we know it‘s always consistent.

[Validate]