Class: Warren::App::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/warren/app/cli.rb

Overview

Warren Thor CLI application used to:

  • Generate the configuration

  • Update the configuration with new consumers

  • Start and stop consumers

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Ensure we exit with an error in the event of failure

Returns:

  • (Boolean)


16
17
18
# File 'lib/warren/app/cli.rb', line 16

def self.exit_on_failure?
  true
end

Instance Method Details

#configObject

Invoked by ‘$ warren config` generates a `warren.yml` file.



27
28
29
# File 'lib/warren/app/cli.rb', line 27

def config
  Warren::App::Config.invoke(self, path: options['path'], exchange: options['exchange'])
end