Ruby client library for Consul HTTP API, providing both a thin wrapper around the raw API and higher level behaviours for operating in a Consul environment.
This library is experimental and unmaintained! You probably shouldn't use it! Have you tried Diplomat?
It's a gem:
gem install consul-client
Simple API usage:
require 'consul/client' client = ::.. client.get("/agent/self")
example directory for more:
puts_service.rbis a minimum server that demostrates coordinated shutdown.
http_service.rbbuilds on top of webrick for an auto-updating server with coordinated restart.
Vagrantfile is provided that makes three
Consul nodes, which is handy for playing around.
Comprehensive YARD documentation is
honestly you're probably better off just working from the