Class: Specimen::Generator::FileByTemplate

Inherits:
Commands::BaseGroupCommand show all
Defined in:
lib/specimen/generator/file_by_template.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Commands::BaseGroupCommand

banner

Class Method Details

.source_rootObject



10
11
12
# File 'lib/specimen/generator/file_by_template.rb', line 10

def self.source_root
  "#{File.dirname(__FILE__)}/templates"
end

Instance Method Details

#createObject



14
15
16
# File 'lib/specimen/generator/file_by_template.rb', line 14

def create
  template(template_file, destination, data)
end