Class: Cupper::CookbookFile

Inherits:
Object
  • Object
show all
Includes:
Entity
Defined in:
lib/cupper/cookbook_file.rb

Constant Summary

Constants included from Entity

Entity::DIR, Entity::FILE

Instance Method Summary collapse

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