Sha256: 7c6e99accee98528b19212f480392e4899fadf77a0b3fb9592d619af6dcfda73

Contents?: true

Size: 380 Bytes

Versions: 16

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module Karafka
  class Cli
    class Topics < Cli::Base
      # Deletes routing based topics and re-creates them
      class Reset < Base
        # @return [true] since it is a reset, always changes so `true` always
        def call
          Delete.new.call && wait
          Create.new.call

          true
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
karafka-2.4.14 lib/karafka/cli/topics/reset.rb
karafka-2.4.13 lib/karafka/cli/topics/reset.rb
karafka-2.4.12 lib/karafka/cli/topics/reset.rb
karafka-2.4.11 lib/karafka/cli/topics/reset.rb
karafka-2.4.10 lib/karafka/cli/topics/reset.rb
karafka-2.4.9 lib/karafka/cli/topics/reset.rb
karafka-2.4.8 lib/karafka/cli/topics/reset.rb
karafka-2.4.7 lib/karafka/cli/topics/reset.rb
karafka-2.4.6 lib/karafka/cli/topics/reset.rb
karafka-2.4.5 lib/karafka/cli/topics/reset.rb
karafka-2.4.4 lib/karafka/cli/topics/reset.rb
karafka-2.4.3 lib/karafka/cli/topics/reset.rb
karafka-2.4.0 lib/karafka/cli/topics/reset.rb
karafka-2.4.0.rc1 lib/karafka/cli/topics/reset.rb
karafka-2.4.0.beta2 lib/karafka/cli/topics/reset.rb
karafka-2.4.0.beta1 lib/karafka/cli/topics/reset.rb