Class: TestGen::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/testgen/cli.rb

Instance Method Summary collapse

Instance Method Details

#project(name) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/testgen/cli.rb', line 12

def project(name)
  driver = options[:pageobject_driver].nil? ? 'none' : options[:pageobject_driver]
  with_lib = options[:with_lib] ? 'true' : 'false'
  with_gametel = options[:with_gametel] ? 'true' : 'false'
  with_mohawk = options[:with_mohawk] ? 'true' : 'false'
  TestGen::Generators::Project.start([name, driver, with_lib, with_gametel, with_mohawk])
end