Sha256: 215ac5a19716c8c4fb851e122b66be579c074b27d5ae24ed05157d9a0f7d5b84

Contents?: true

Size: 727 Bytes

Versions: 8

Compression:

Stored size: 727 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lucid-0.2.0 lib/lucid/generator.rb
lucid-0.1.1 lib/lucid/generator.rb
lucid-0.1.0 lib/lucid/generator.rb
lucid-0.0.9 lib/lucid/generator.rb
lucid-0.0.8 lib/lucid/generator.rb
lucid-0.0.7 lib/lucid/generator.rb
lucid-0.0.6 lib/lucid/generator.rb
lucid-0.0.5 lib/lucid/generator.rb