lib/consul_syncer.rb
# creates or updates based on node and service
creates or updates based on node and service
creates or updates based on node and service
def register(node:, service:, service_id:, service_address:, address:, tags:, port:, reason:)
    @logger.info reason
    @consul.request(
      :put,
      '/v1/catalog/register',
      Node: node,
      Address: address,
      Service: {
        ID: service_id,
        Service: service,
        Address: service_address,
        Tags: tags,
        Port: port
      }
    )
  end
def register ( node : , service : , service_id : , service_address : , address : , tags : , port : , reason : ) @logger . info reason @consul . request ( :put , '/v1/catalog/register' , Node : node , Address : address , Service : { ID : service_id , Service : service , Address : service_address , Tags : tags , Port : port } ) end
creates or updates based on node and service
creates or updates based on node and service
node
service
service_id
service_address
address
tags
port
reason