Sha256: cbd92c0eea9cc43c78cdd05eae663c1e9ab95f1b613166a8e41444a2f87dfa8b

Contents?: true

Size: 667 Bytes

Versions: 20

Compression:

Stored size: 667 Bytes

Contents

# frozen_string_literal: true

module Karafka
  module Web
    class Cli
      # Installs Web UI
      class Install < Base
        desc 'Installs the Web UI'

        option(
          :replication_factor,
          'Replication factor for created topics',
          Integer,
          ['--replication_factor [FACTOR]']
        )

        # Installs Karafka Web. Creates all needed topics, populates the data and adds the needed
        # code to `karafka.rb`.
        def call
          Karafka::Web::Installer.new.install(
            replication_factor: compute_replication_factor(options[:replication_factor])
          )
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
karafka-web-0.10.3 lib/karafka/web/cli/install.rb
karafka-web-0.10.2 lib/karafka/web/cli/install.rb
karafka-web-0.10.1 lib/karafka/web/cli/install.rb
karafka-web-0.10.0 lib/karafka/web/cli/install.rb
karafka-web-0.10.0.rc2 lib/karafka/web/cli/install.rb
karafka-web-0.10.0.rc1 lib/karafka/web/cli/install.rb
karafka-web-0.10.0.beta1 lib/karafka/web/cli/install.rb
karafka-web-0.9.1 lib/karafka/web/cli/install.rb
karafka-web-0.9.0 lib/karafka/web/cli/install.rb
karafka-web-0.9.0.rc3 lib/karafka/web/cli/install.rb
karafka-web-0.9.0.rc2 lib/karafka/web/cli/install.rb
karafka-web-0.9.0.rc1 lib/karafka/web/cli/install.rb
karafka-web-0.8.2 lib/karafka/web/cli/install.rb
karafka-web-0.8.1 lib/karafka/web/cli/install.rb
karafka-web-0.8.0 lib/karafka/web/cli/install.rb
karafka-web-0.8.0.rc1 lib/karafka/web/cli/install.rb
karafka-web-0.7.10 lib/karafka/web/cli/install.rb
karafka-web-0.7.9 lib/karafka/web/cli/install.rb
karafka-web-0.7.8 lib/karafka/web/cli/install.rb
karafka-web-0.7.7 lib/karafka/web/cli/install.rb