Sha256: 591b2715cefc73e79ca9f21e63176cadf748a2863e6d7f45458f18bc755f9f7d
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 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 'symbiont'.)" def project(name) puts "Name of project: #{name}" driver = options[:driver].nil? ? 'symbiont' : options[:driver] LucidGen::Generators::Project.start([name, driver]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lucid-gen-2.1.0 | lib/lucid-gen/generator.rb |
lucid-gen-2.0.0 | lib/lucid-gen/generator.rb |