Class: Comfy::Templater
- Inherits:
-
Object
- Object
- Comfy::Templater
- Defined in:
- lib/comfy/templater.rb
Overview
Class used for preparing and filling file templates.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ Templater
constructor
Creates an instance of Templater.
-
#prepare_files ⇒ Object
Prepares *.json and *.cfg files from templates for selected distribution.
Constructor Details
#initialize(data) ⇒ Templater
Creates an instance of Templater.
13 14 15 |
# File 'lib/comfy/templater.rb', line 13 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/comfy/templater.rb', line 8 def data @data end |
Instance Method Details
#prepare_files ⇒ Object
Prepares *.json and *.cfg files from templates for selected distribution
18 19 20 21 |
# File 'lib/comfy/templater.rb', line 18 def prepare_files prepare_file('cfg') prepare_file('packer', true) end |