Class: Rookout::TriggerServices

Inherits:
Object
  • Object
show all
Defined in:
lib/rookout/trigger_services.rb

Instance Method Summary collapse

Constructor Details

#initializeTriggerServices

Returns a new instance of TriggerServices.



6
7
8
9
10
# File 'lib/rookout/trigger_services.rb', line 6

def initialize
  super

  @services = {}
end

Instance Method Details

#clear_augsObject



20
21
22
# File 'lib/rookout/trigger_services.rb', line 20

def clear_augs
  @services.each_value(&:clear_augs)
end

#closeObject



29
30
31
32
# File 'lib/rookout/trigger_services.rb', line 29

def close
  @services.each_value(&:close)
  @services = {}
end

#get_service(name) ⇒ Object



12
13
14
# File 'lib/rookout/trigger_services.rb', line 12

def get_service name
  @services[name]
end

#remove_aug(aug_id) ⇒ Object



16
17
18
# File 'lib/rookout/trigger_services.rb', line 16

def remove_aug aug_id
  @services.each_value { |service| service.remove_aug aug_id }
end

#startObject



24
25
26
27
# File 'lib/rookout/trigger_services.rb', line 24

def start
  @services["tracer"] = Services::Tracer.new
  @services["position"] = Services::PositionResolver.new @services["tracer"]
end