Class: DevStructure::Puppet::File
- Defined in:
- lib/devstructure/puppet.rb
Overview
‘File` resources are a special because they need their content stored in a template.
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(name, content, options = {}) ⇒ File
constructor
A new instance of File.
Methods inherited from Resource
[], defaults, #inspect, #pretty_print, #to_s
Constructor Details
#initialize(name, content, options = {}) ⇒ File
Returns a new instance of File.
311 312 313 314 |
# File 'lib/devstructure/puppet.rb', line 311 def initialize(name, content, ={}) super name, @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
315 316 317 |
# File 'lib/devstructure/puppet.rb', line 315 def content @content end |