Sha256: 34015adf0a89b3e9b67f2de3186839933820a6b4a90c4952aa212cc6e76ac814
Contents?: true
Size: 395 Bytes
Versions: 4
Compression:
Stored size: 395 Bytes
Contents
require 'net/http' module ContainersManager class ConsulService def initialize(configuration) @configuration = configuration end def services(url) uri = URI(url) JSON.parse(Net::HTTP.get(uri)) 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