Sha256: 3b165dc27faeb1efd06c23d9c373065fe03fee57c80fbeb9806408bb8ab8fae3
Contents?: true
Size: 780 Bytes
Versions: 21
Compression:
Stored size: 780 Bytes
Contents
# frozen_string_literal: true module Karafka module Web class Cli # Resets the Web UI class Reset < Base desc 'Resets the Web UI by removing all the Web topics and creating them again' option( :replication_factor, 'Replication factor for created topics', Integer, ['--replication_factor [FACTOR]'] ) # 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. def call Karafka::Web::Installer.new.reset( replication_factor: compute_replication_factor(options[:replication_factor]) ) end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems