class Karafka::Cli::Console
Public Class Methods
command()
click to toggle source
@return [String] Console
executing command @example
Karafka::Cli::Console.command #=> 'KARAFKA_CONSOLE=true bundle exec irb...'
# 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
Public Instance Methods
call()
click to toggle source
Start the Karafka
console
# File lib/karafka/cli/console.rb, line 25 def call cli.info exec self.class.command end