Class: Karafka::Cli::Server

Inherits:
Base
  • Object
show all
Includes:
Helpers::Colorize
Defined in:
lib/karafka/cli/server.rb

Overview

Server Karafka Cli action

Instance Attribute Summary

Attributes inherited from Base

#cli

Instance Method Summary collapse

Methods included from Helpers::Colorize

#green, #red, #yellow

Methods inherited from Base

bind_to, desc, #initialize, load, option

Constructor Details

This class inherits a constructor from Karafka::Cli::Base

Instance Method Details

#callObject

Start the Karafka server



39
40
41
42
43
44
45
46
47
# File 'lib/karafka/cli/server.rb', line 39

def call
  # Print our banner and info in the dev mode
  print_marketing_info if Karafka::App.env.development?

  register_inclusions(cli)
  register_exclusions(cli)

  Karafka::Server.run
end