Class: FistOfFury::Supervisor

Inherits:
Celluloid::SupervisionGroup
  • Object
show all
Extended by:
Logging
Defined in:
lib/fist_of_fury/supervisor.rb

Class Method Summary collapse

Class Method Details

.clockObject



10
11
12
13
# File 'lib/fist_of_fury/supervisor.rb', line 10

def clock
  run! if Celluloid::Actor[:fist_of_fury_clock].nil?
  Celluloid::Actor[:fist_of_fury_clock]
end

.dispatcherObject



15
16
17
18
# File 'lib/fist_of_fury/supervisor.rb', line 15

def dispatcher
  run! if Celluloid::Actor[:fist_of_fury_dispatcher].nil?
  Celluloid::Actor[:fist_of_fury_dispatcher]
end

.run!Object



20
21
22
23
# File 'lib/fist_of_fury/supervisor.rb', line 20

def run!
  info 'FistOfFury::Supervisor start'
  super
end