Class: Karafka::Web::Cli::Migrate

Inherits:
Base
  • Object
show all
Defined in:
lib/karafka/web/cli/migrate.rb

Overview

Migrates the Web UI topics and states if needed

Instance Method Summary collapse

Methods inherited from Base

commands

Instance Method Details

#callObject

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(options[:replication_factor])
  )
end