Class: Kerbi::Cli::ProjectHandler

Inherits:
BaseHandler show all
Defined in:
lib/cli/project_handler.rb

Instance Method Summary collapse

Instance Method Details

#new_project(project_name) ⇒ Object



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

def new_project(project_name)
  generator = Kerbi::CodeGen::ProjectGenerator.new(
    project_name: project_name,
    ruby_version: run_opts.ruby_version,
    verbose: true
  )
  success = generator.run
  exit(success)
end