Sha256: 9a58d61efb44b78e7f3501b644483a0a458d1b08c65719834436b81578a4000d
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
require 'thor' require 'lucid-gen/generators/project' module LucidGen class Generator < Thor desc 'project NAME', 'Create a new project.' 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] LucidGen::Generators::Project.start([name, driver]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lucid-gen-1.0.0 | lib/lucid-gen/generator.rb |