Class: Lucid::CLI::Base

Inherits:
Thor
  • Object
show all
Defined in:
lib/lucid/cli/base.rb

Instance Method Summary collapse

Instance Method Details

#new(name) ⇒ Object



26
27
28
29
30
# File 'lib/lucid/cli/base.rb', line 26

def new(name)
  require 'lucid/generators'
  require 'lucid/generators/game/game_generator'
  Lucid::Generators::GameGenerator.start([name])
end

#plugin(name) ⇒ Object



33
34
35
36
37
# File 'lib/lucid/cli/base.rb', line 33

def plugin(name)
  require 'lucid/generators'
  require 'lucid/generators/plugin/plugin_generator'
  Lucid::Generators::PluginGenerator.start([name])
end