Class: Karafka::Cli::Console
Overview
Console Karafka Cli action
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
-
.command ⇒ String
Console executing command.
Instance Method Summary collapse
-
#call ⇒ Object
Start the Karafka console.
Methods inherited from Base
bind_to, desc, #initialize, option
Constructor Details
This class inherits a constructor from Karafka::Cli::Base
Class Method Details
.command ⇒ String
Returns Console executing command.
15 16 17 18 19 20 21 |
# File 'lib/karafka/cli/console.rb', line 15 def command envs = [ "IRBRC='#{Karafka.gem_root}/.console_irbrc'", 'KARAFKA_CONSOLE=true' ] "#{envs.join(' ')} bundle exec irb -r #{Karafka.boot_file}" end |
Instance Method Details
#call ⇒ Object
Start the Karafka console
25 26 27 28 |
# File 'lib/karafka/cli/console.rb', line 25 def call cli.info exec self.class.command end |