Module: Hanami::CliBase
- Included in:
- Cli, Hanami::CliSubCommands::Assets, Hanami::CliSubCommands::DB, Hanami::CliSubCommands::Destroy, Hanami::CliSubCommands::Generate
- Defined in:
- lib/hanami/cli_base.rb
Overview
Instance Method Summary collapse
-
#define_commands(&blk) ⇒ Object
private
Add new custom CLI command to special CLI class.
Instance Method Details
#define_commands(&blk) ⇒ 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.
Add new custom CLI command to special CLI class. Please be careful. This is a private method that can be deleted soon.
27 28 29 |
# File 'lib/hanami/cli_base.rb', line 27 def define_commands(&blk) class_eval(&blk) if block_given? end |