Class: Dryad::Consul::KeyValueClient
- Inherits:
-
Object
- Object
- Dryad::Consul::KeyValueClient
- Defined in:
- lib/dryad/consul/key_value_client.rb
Class Method Summary collapse
-
.get(path) ⇒ OpenStruct
Get a value by its key, potentially blocking for the first or next value.
Class Method Details
.get(path) ⇒ OpenStruct
Get a value by its key, potentially blocking for the first or next value
11 12 13 14 15 |
# File 'lib/dryad/consul/key_value_client.rb', line 11 def get(path) OpenStruct.new ::Diplomat::Kv.get(path, decode_values: true).first rescue Diplomat::KeyNotFound nil end |