require 'thor' require 'lucid/generators/project' module Lucid class Generator < Thor desc "project NAME", "Create a new project." #method_option :browser, aliases: "-b", type: :boolean, desc: "Use for browser-based testing." method_option :driver, aliases: "-d", type: :string, required: false, desc: "Framework driver to use. (Default value is 'symbiont'.)" def project(name) puts "Name of project: #{name}" driver = options[:driver].nil? ? 'symbiont' : options[:driver] #browser = options[:browser] == true ? 'true' : 'false' #Lucid::Generators::Project.start([name, browser, driver]) Lucid::Generators::Project.start([name, driver]) end end end