Sha256: 82ab2bc448e6ddc99b8df8e8219836c82a57ea893cbbff1acf4f777588266ac6

Contents?: true

Size: 950 Bytes

Versions: 20

Compression:

Stored size: 950 Bytes

Contents

# frozen_string_literal: true

module Karafka
  # Karafka framework Cli
  class Cli < Thor
    # Info Karafka Cli action
    class Info < Base
      desc 'Print configuration details and other options of your application'

      # Print configuration details and other options of your application
      def call
        config = Karafka::App.config

        info = [
          "Karafka version: #{Karafka::VERSION}",
          "Ruby version: #{RUBY_VERSION}",
          "Ruby-kafka version: #{::Kafka::VERSION}",
          "Application client id: #{config.client_id}",
          "Backend: #{config.backend}",
          "Batch fetching: #{config.batch_fetching}",
          "Batch consuming: #{config.batch_consuming}",
          "Boot file: #{Karafka.boot_file}",
          "Environment: #{Karafka.env}",
          "Kafka seed brokers: #{config.kafka.seed_brokers}"
        ]

        Karafka.logger.info(info.join("\n"))
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
karafka-1.4.15 lib/karafka/cli/info.rb
karafka-1.4.14 lib/karafka/cli/info.rb
karafka-1.4.13 lib/karafka/cli/info.rb
karafka-1.4.12 lib/karafka/cli/info.rb
karafka-1.4.11 lib/karafka/cli/info.rb
karafka-1.4.10 lib/karafka/cli/info.rb
karafka-1.4.9 lib/karafka/cli/info.rb
karafka-1.4.8 lib/karafka/cli/info.rb
karafka-1.4.7 lib/karafka/cli/info.rb
karafka-1.4.6 lib/karafka/cli/info.rb
karafka-1.4.5 lib/karafka/cli/info.rb
karafka-1.4.4 lib/karafka/cli/info.rb
karafka-1.4.3 lib/karafka/cli/info.rb
karafka-1.4.2 lib/karafka/cli/info.rb
karafka-1.4.1 lib/karafka/cli/info.rb
karafka-1.4.0 lib/karafka/cli/info.rb
karafka-1.4.0.rc2 lib/karafka/cli/info.rb
karafka-1.4.0.rc1 lib/karafka/cli/info.rb
karafka-1.3.7 lib/karafka/cli/info.rb
karafka-1.3.6 lib/karafka/cli/info.rb