lib/karafka/cli/console.rb in karafka-2.2.7 vs lib/karafka/cli/console.rb in karafka-2.2.8.beta1

- old
+ new

@@ -1,15 +1,16 @@ # frozen_string_literal: true module Karafka # Karafka framework Cli - class Cli < Thor + class Cli # Console Karafka Cli action class Console < Base - desc 'Start the Karafka console (short-cut alias: "c")' - option aliases: 'c' + desc 'Starts the Karafka console (short-cut alias: "c")' + aliases :c + class << self # @return [String] Console executing command for non-Rails setup # @example # Karafka::Cli::Console.command #=> 'KARAFKA_CONSOLE=true bundle exec irb...' def console @@ -23,10 +24,10 @@ end end # Start the Karafka console def call - cli.info + Info.new.call command = ::Karafka.rails? ? self.class.rails_console : self.class.console exec "KARAFKA_CONSOLE=true #{command}" end