Module: Hanami::CLI::Commands::Gem

Defined in:
lib/hanami/cli/commands/gem.rb,
lib/hanami/cli/commands/gem/new.rb,
lib/hanami/cli/commands/gem/version.rb

Overview

Commands made available when the hanami CLI is executed outside of an Hanami app.

Since:

  • 2.0.0

Defined Under Namespace

Classes: New, Version

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.0.0



13
14
15
16
17
18
# File 'lib/hanami/cli/commands/gem.rb', line 13

def self.extended(base)
  base.module_eval do
    register "version", Commands::Gem::Version, aliases: ["v", "-v", "--version"]
    register "new", Commands::Gem::New
  end
end