Sha256: d6980fe1bb197484e3ec8d75394a6120191bc6451858bf13d8c02b59ae60491f

Contents?: true

Size: 732 Bytes

Versions: 1

Compression:

Stored size: 732 Bytes

Contents

module Karafka
  # Karafka framework Cli
  class Cli
    # 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 framework version: #{Karafka::VERSION}",
          "Application name: #{config.name}",
          "Number of threads: #{config.concurrency}",
          "Boot file: #{Karafka.boot_file}",
          "Environment: #{Karafka.env}",
          "Kafka hosts: #{config.kafka.hosts}",
          "Redis: #{config.redis.to_h}"
        ]

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
karafka-0.5.0 lib/karafka/cli/info.rb