Class: Ree::CLI::GeneratePackage

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

Class Method Summary collapse

Class Method Details

.run(package_name:, project_path:, path:, locals: {}, stdout: $stdout) ⇒ Object



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

def run(package_name:, project_path:, path:, locals: {}, stdout: $stdout)
  generated_files_list = Ree::Gen::Package.generate(
    project_path: project_path,
    local_path:   path,
    package_name: package_name,
    locals:       locals
  )
  
  generated_files_list.compact.each { |file| stdout.puts "Generated: #{file}" }
end