Sha256: 429e8ff5a8d9fec642ab790b916392390d27bfa2765333bc12bfc11f169d7add

Contents?: true

Size: 935 Bytes

Versions: 7

Compression:

Stored size: 935 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}"
        ]

        puts(info.join("\n"))
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
karafka-1.3.5 lib/karafka/cli/info.rb
karafka-1.3.4 lib/karafka/cli/info.rb
karafka-1.3.3 lib/karafka/cli/info.rb
karafka-1.3.2 lib/karafka/cli/info.rb
karafka-1.3.1 lib/karafka/cli/info.rb
karafka-1.3.0 lib/karafka/cli/info.rb
karafka-1.3.0.rc1 lib/karafka/cli/info.rb