Class: Venom::Generator

Inherits:
Thor
  • Object
show all
Defined in:
lib/venom/generator.rb

Instance Method Summary collapse

Instance Method Details

#workshop(name) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/venom/generator.rb', line 11

def workshop(name)
  puts "Name of workshop: #{name}"
  driver = options[:driver].nil? ? 'symbiont' : options[:driver]
  library = options[:library] == true ? 'true' : 'false'
  restart = options[:restart] == true ? 'true' : 'false'

  Venom::Generators::Workshop.start([name, driver, library, restart])
end