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.
Defined Under Namespace
Class Method Summary collapse
- .extended(base) ⇒ Object private
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.
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 |