Class: Karafka::Cli::Info
Overview
Info Karafka Cli action
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#call ⇒ Object
Print configuration details and other options of your application.
Methods inherited from Base
bind_to, desc, #initialize, option
Constructor Details
This class inherits a constructor from Karafka::Cli::Base
Instance Method Details
#call ⇒ Object
Print configuration details and other options of your application
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/karafka/cli/info.rb', line 11 def call config = Karafka::App.config info = [ "Karafka framework version: #{Karafka::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 |