Class: Warren::App::ConsumerStart
- Inherits:
-
Object
- Object
- Warren::App::ConsumerStart
- Defined in:
- lib/warren/app/consumer_start.rb
Overview
Handles the initial creation of the configuration object
Class Method Summary collapse
-
.invoke(shell, options) ⇒ Void
Starts up a warren client process for the configured consumers.
Instance Method Summary collapse
-
#initialize(shell, options) ⇒ ConsumerStart
constructor
A new instance of ConsumerStart.
-
#invoke ⇒ Void
Starts up a warren client process for the configured consumers.
Constructor Details
#initialize(shell, options) ⇒ ConsumerStart
Returns a new instance of ConsumerStart.
25 26 27 28 29 |
# File 'lib/warren/app/consumer_start.rb', line 25 def initialize(shell, ) @shell = shell @config = Warren::Config::Consumers.new([:path]) @consumers = [:consumers] end |
Class Method Details
.invoke(shell, options) ⇒ Void
Starts up a warren client process for the configured consumers.
21 22 23 |
# File 'lib/warren/app/consumer_start.rb', line 21 def self.invoke(shell, ) new(shell, ).invoke end |