Class: ForgeCLI::App
- Inherits:
-
Thor
- Object
- Thor
- ForgeCLI::App
- Defined in:
- lib/forge-cli/app.rb
Instance Method Summary collapse
Instance Method Details
#install(modules) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/forge-cli/app.rb', line 9 def install(modules) app = Dir.pwd modules = modules.split(',') modules.each do |mod| ForgeCLI::ModuleInstaller.install_module!(mod, app, app) end end |
#list ⇒ Object
18 19 20 21 22 23 |
# File 'lib/forge-cli/app.rb', line 18 def list puts "The following Forge modules are available: \n" ForgeCLI::MODULES.each do |mod| puts " - #{mod}" unless mod == "base" end end |
#new(app, modules = '') ⇒ Object
3 4 5 6 |
# File 'lib/forge-cli/app.rb', line 3 def new(app, modules = '') modules = modules.split(',') ForgeCLI::ApplicationCreator.create!(app, modules) end |