Sha256: dfd4f354df567149d5864b0706e5f61812f1bc41a6a242a6711f2600baa3bd78
Contents?: true
Size: 643 Bytes
Versions: 14
Compression:
Stored size: 643 Bytes
Contents
class ForgeCLI::App < Thor desc 'new', 'Create a new Forge app' def new(app, modules = '') modules = modules.split(',') ForgeCLI::ApplicationCreator.create!(app, modules) end desc 'install', 'Install modules into the working Forge app' def install(modules) app = Dir.pwd modules = modules.split(',') modules.each do |mod| ForgeCLI::ModuleInstaller.install_module!(mod, app, app) end end desc 'list', 'List available Forge modules' def list puts "The following Forge modules are available: \n" ForgeCLI::MODULES.each do |mod| puts " - #{mod}" unless mod == "base" end end end
Version data entries
14 entries across 14 versions & 1 rubygems