Class: Karafka::Cli
- Inherits:
-
Thor
- Object
- Thor
- Karafka::Cli
- Defined in:
- lib/karafka/cli.rb,
lib/karafka/cli/base.rb,
lib/karafka/cli/info.rb,
lib/karafka/cli/server.rb,
lib/karafka/cli/console.rb,
lib/karafka/cli/install.rb
Overview
Karafka framework Cli
Defined Under Namespace
Classes: Base, Console, Info, Install, Server
Class Method Summary collapse
-
.prepare ⇒ Object
Loads all Cli commands into Thor framework.
Class Method Details
.prepare ⇒ Object
Loads all Cli commands into Thor framework. This method should be executed before we run Karafka::Cli.start, otherwise we won’t have any Cli commands available.
18 19 20 21 22 |
# File 'lib/karafka/cli.rb', line 18 def prepare cli_commands.each do |action| action.bind_to(self) end end |