Class: Citrus::Components::Master
- Defined in:
- lib/citrus/components/master.rb
Overview
Master
Instance Method Summary collapse
-
#initialize(app, args = {}) ⇒ Master
constructor
Initialize the component.
-
#start(&block) ⇒ Object
Start the component.
-
#stop(force = false, &block) ⇒ Object
Stop the component.
Constructor Details
#initialize(app, args = {}) ⇒ Master
Initialize the component
23 24 25 |
# File 'lib/citrus/components/master.rb', line 23 def initialize app, args={} @master = Citrus::Master::Master.new app, args end |
Instance Method Details
#start(&block) ⇒ Object
Start the component
28 29 30 |
# File 'lib/citrus/components/master.rb', line 28 def start &block @master.start &block end |
#stop(force = false, &block) ⇒ Object
Stop the component
35 36 37 |
# File 'lib/citrus/components/master.rb', line 35 def stop force=false, &block @master.stop &block end |