Class: Puppet::Parser::Resource::Param
- Includes:
- FileCollection::Lookup, YamlTrimmer, Util, Util::Errors, Util::MethodHelper
- Defined in:
- lib/puppet/parser/resource/param.rb
Overview
The parameters we stick in Resources.
Constant Summary
Constants included from YamlTrimmer
Instance Attribute Summary collapse
-
#add ⇒ Object
Returns the value of attribute add.
-
#name ⇒ Object
Returns the value of attribute name.
-
#source ⇒ Object
Returns the value of attribute source.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes included from FileCollection::Lookup
Instance Method Summary collapse
-
#initialize(hash) ⇒ Param
constructor
A new instance of Param.
- #line_to_i ⇒ Object
- #to_s ⇒ Object
Methods included from YamlTrimmer
Methods included from FileCollection::Lookup
#file, #file=, #file_collection
Methods included from Util::MethodHelper
#requiredopts, #set_options, #symbolize_options
Methods included from Util::Errors
#adderrorcontext, #devfail, #error_context, #exceptwrap, #fail
Methods included from Util
activerecord_version, benchmark, chuser, classproxy, #execfail, #execpipe, execute, logmethods, memory, proxy, recmkdir, secure_open, symbolize, symbolizehash, symbolizehash!, synchronize_on, thinmark, #threadlock, which, withumask
Methods included from Util::POSIX
#get_posix_field, #gid, #idfield, #methodbyid, #methodbyname, #search_posix_field, #uid
Constructor Details
#initialize(hash) ⇒ Param
Returns a new instance of Param.
14 15 16 17 18 |
# File 'lib/puppet/parser/resource/param.rb', line 14 def initialize(hash) (hash) requiredopts(:name, :value) @name = symbolize(@name) end |
Instance Attribute Details
#add ⇒ Object
Returns the value of attribute add.
6 7 8 |
# File 'lib/puppet/parser/resource/param.rb', line 6 def add @add end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/puppet/parser/resource/param.rb', line 6 def name @name end |
#source ⇒ Object
Returns the value of attribute source.
6 7 8 |
# File 'lib/puppet/parser/resource/param.rb', line 6 def source @source end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/puppet/parser/resource/param.rb', line 6 def value @value end |