Class: Karafka::Web::Cli::Reset
- Defined in:
- lib/karafka/web/cli/reset.rb
Overview
Resets the Web UI
Instance Method Summary collapse
-
#call ⇒ Object
Resets Karafka Web.
Methods inherited from Base
Instance Method Details
#call ⇒ Object
Resets Karafka Web. Removes the topics, creates them again and populates the initial state again. This is useful in case the Web-UI metrics or anything else got corrupted.
19 20 21 22 23 |
# File 'lib/karafka/web/cli/reset.rb', line 19 def call Karafka::Web::Installer.new.reset( replication_factor: compute_replication_factor([:replication_factor]) ) end |