Class: Ree::CLI::GenerateTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/ree/cli/generate_template.rb

Class Method Summary collapse

Class Method Details

.run(template_name:, project_path:, local_path:, locals:) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/ree/cli/generate_template.rb', line 5

def run(template_name:, project_path:, local_path:, locals:)
  generated_files_list = Ree::TemplateHandler.generate(
    template_name: template_name,
    project_path: project_path,
    local_path: local_path,
    locals: locals
  )
  
  generated_files_list.compact.each { |file| puts("Generated: #{file}") }

  puts("done")
end