Class: Karafka::Web::Cli::Migrate
- Defined in:
- lib/karafka/web/cli/migrate.rb
Overview
Migrates the Web UI topics and states if needed
Instance Method Summary collapse
-
#call ⇒ Object
Creates new topics (if any) and populates missing data.
Methods inherited from Base
Instance Method Details
#call ⇒ Object
Creates new topics (if any) and populates missing data. It does not remove topics and will not populate data if it is already there.
Useful in two scenarios: 1. When setting up Web-UI in a new environment, so the Web-UI has the proper initial state. 2. When upgrading Web-UI in-between versions that would require extra topics and/or extra states populated.
25 26 27 28 29 |
# File 'lib/karafka/web/cli/migrate.rb', line 25 def call Karafka::Web::Installer.new.migrate( replication_factor: compute_replication_factor([:replication_factor]) ) end |