Class: Dryad::Consul::Service

Inherits:
Dryad::Core::Service
  • Object
show all
Defined in:
lib/dryad/consul/service.rb

Instance Method Summary collapse

Instance Method Details

#to_registersObject



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/dryad/consul/service.rb', line 4

def to_registers
  portals.map do |portal|
    {
      ID: portal.id,
      Name: Service.full_name(portal.schema, name),
      Address: address,
      Port: portal.port,
      EnableTagOverride: true,
      Tags: tags(portal),
      Checks: checks(portal)
    }
  end
end