class Warren::App::Consumer
Warren
Thor CLI subcommand used to:
-
Add new consumer configurations
-
Start consumers
@see whatisthor.com
Public Class Methods
exit_on_failure?()
click to toggle source
Ensure we exit with an error in the event of failure
# File lib/warren/app/consumer.rb, line 20 def self.exit_on_failure? true end
Public Instance Methods
add(name = nil)
click to toggle source
Invoked by `$ warren consumer add` adds a consumer to the `warren_consumers.yml`
@param name [String, nil] Optional: Passed in from Command. The name of the consumer to create.
@return [Void]
# File lib/warren/app/consumer.rb, line 43 def add(name = nil) say 'Adding a consumer' Warren::App::ConsumerAdd.invoke(self, name, options) end
start()
click to toggle source
Invoked by `$ warren consumer start`. Starts up the configured consumers
@return [Void]
# File lib/warren/app/consumer.rb, line 59 def start say 'Starting consumers' Warren::App::ConsumerStart.invoke(self, options) end