Class: Citrus::Components::Master

Inherits:
Component
  • Object
show all
Defined in:
lib/citrus/components/master.rb

Overview

Master

Instance Method Summary collapse

Constructor Details

#initialize(app, args = {}) ⇒ Master

Initialize the component

Parameters:

  • app (Object)
  • args (Hash) (defaults to: {})


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

Parameters:

  • force (Boolean) (defaults to: false)


35
36
37
# File 'lib/citrus/components/master.rb', line 35

def stop force=false, &block
  @master.stop &block
end