Class: Karafka::Cli::Topics::Reset

Inherits:
Base
  • Object
show all
Defined in:
lib/karafka/cli/topics/reset.rb

Overview

Deletes routing based topics and re-creates them

Instance Method Summary collapse

Methods included from Helpers::Colorize

#green, #grey, #red, #yellow

Instance Method Details

#calltrue

Returns since it is a reset, always changes so ‘true` always.

Returns:

  • (true)

    since it is a reset, always changes so ‘true` always



9
10
11
12
13
14
# File 'lib/karafka/cli/topics/reset.rb', line 9

def call
  Delete.new.call && wait
  Create.new.call

  true
end