Class: Karafka::Web::Cli::Base
- Inherits:
-
Cli::Base
- Object
- Cli::Base
- Karafka::Web::Cli::Base
- Includes:
- Helpers::Colorize
- Defined in:
- lib/karafka/web/cli/base.rb
Overview
Base command for all the Web Cli commands
Class Method Summary collapse
-
.commands ⇒ Array<Class>
Available commands.
Class Method Details
.commands ⇒ Array<Class>
Returns available commands.
12 13 14 15 16 17 18 |
# File 'lib/karafka/web/cli/base.rb', line 12 def commands ObjectSpace .each_object(Class) .select { |klass| klass.superclass == Karafka::Web::Cli::Base } .reject { |klass| klass.to_s.end_with?('::Base') } .sort_by(&:name) end |