lita-consul
lita-consul is a handler for Lita for interacting with Consul.
Installation
Add lita-consul to your Lita instance's Gemfile:
gem "lita-consul"
Configuration
Optional attributes
-
consul_host
(String) - Consul host. Default:localhost
. -
consul_port
(String) - Consul port. Default:8500
.
Usage
[You]: lita consul get foo
[Lita]: foo = bar
[You]: lita consul set mykey myvalue
[Lita]: mykey = myvalue
[You]: lita consul members
[Lita]: node1.node.consul - 192.168.0.33
node2.node.consul - 192.168.0.34