Class: Cupper::CookbookFile
- Inherits:
-
Object
- Object
- Cupper::CookbookFile
- Includes:
- Entity
- Defined in:
- lib/cupper/cookbook_file.rb
Constant Summary
Constants included from Entity
Instance Method Summary collapse
-
#initialize(dest_path, source, content, erb_file = nil, type = nil) ⇒ CookbookFile
constructor
A new instance of CookbookFile.
Methods included from Entity
#content, #create, #dir?, #exist?, #file?, #full_path, #render_template, #save
Constructor Details
#initialize(dest_path, source, content, erb_file = nil, type = nil) ⇒ CookbookFile
Returns a new instance of CookbookFile.
4 5 6 7 8 |
# File 'lib/cupper/cookbook_file.rb', line 4 def initialize(dest_path, source, content, erb_file = nil, type = nil) @source = source @content = content super(@source, dest_path, erb_file, type) end |