Class: Synapse::EC2Watcher

Inherits:
BaseWatcher show all
Defined in:
lib/synapse/service_watcher/ec2tag.rb

Constant Summary

Constants inherited from BaseWatcher

BaseWatcher::LEADER_WARN_INTERVAL

Instance Attribute Summary

Attributes inherited from BaseWatcher

#haproxy, #name

Instance Method Summary collapse

Methods inherited from BaseWatcher

#backends, #initialize, #ping?, #stop

Methods included from Logging

configure_logger_for, #log, logger_for

Constructor Details

This class inherits a constructor from Synapse::BaseWatcher

Instance Method Details

#startObject



5
6
7
8
9
# File 'lib/synapse/service_watcher/ec2tag.rb', line 5

def start
  # connect to ec2
  # find all servers whose @discovery['tag_name'] matches @discovery['tag_value']
  # call @synapse.configure
end