Sha256: 97e7748afde13c715f52e36186fc604f710939d6708becf78d27f70d1f1815f5
Contents?: true
Size: 388 Bytes
Versions: 4
Compression:
Stored size: 388 Bytes
Contents
require 'json' module ContainersManager class ConsulService def initialize(configuration) @configuration = configuration end def services(url) resp = `curl -sSL #{url}` JSON.parse(resp) end def deregister(id) system("curl -XPUT #{@configuration.consul_deregister_url}/#{id}") end private attr_reader :configuration end end
Version data entries
4 entries across 4 versions & 1 rubygems