Class: DevStructure::Puppet::File

Inherits:
Resource
  • Object
show all
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

Attributes inherited from Resource

#name, #style, #type

Instance Method Summary collapse

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, options={})
  super name, options
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



315
316
317
# File 'lib/devstructure/puppet.rb', line 315

def content
  @content
end