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

Version Path
forge-cli-0.1.10 lib/forge-cli/app.rb
forge-cli-0.1.9 lib/forge-cli/app.rb
forge-cli-0.1.8 lib/forge-cli/app.rb
forge-cli-0.1.7 lib/forge-cli/app.rb
forge-cli-0.1.6 lib/forge-cli/app.rb
forge-cli-0.1.5 lib/forge-cli/app.rb
forge-cli-0.1.4 lib/forge-cli/app.rb
forge-cli-0.1.3 lib/forge-cli/app.rb
forge-cli-0.1.2 lib/forge-cli/app.rb
forge-cli-0.1.1 lib/forge-cli/app.rb
forge-cli-0.1.0 lib/forge-cli/app.rb
forge-cli-0.0.18 lib/forge-cli/app.rb
forge-cli-0.0.17 lib/forge-cli/app.rb
forge-cli-0.0.16 lib/forge-cli/app.rb