Sha256: f48cccbb5f598bbb9edd8382be9bc6845f8cf5a2de59bda43813b82a739a3188

Contents?: true

Size: 723 Bytes

Versions: 3

Compression:

Stored size: 723 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 'fluent'.)"

    def project(name)
      puts "Name of project: #{name}"

      driver = options[:driver].nil? ? 'fluent' : 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

3 entries across 3 versions & 1 rubygems

Version Path
lucid-0.3.3 lib/lucid/generator.rb
lucid-0.3.0 lib/lucid/generator.rb
lucid-0.2.1 lib/lucid/generator.rb