Sha256: b6e3a31b69dc54b08fa00c6225a7d4e68c8c2019b9fc466fda7063d926902904
Contents?: true
Size: 485 Bytes
Versions: 16
Compression:
Stored size: 485 Bytes
Contents
require "ostruct" module Dryad module Consul class KeyValueClient class << self # Get a value by its key, potentially blocking for the first or next value # @param key [String] the key # @return [OpenStruct] The base64-decoded value associated with the key def get(path) OpenStruct.new ::Diplomat::Kv.get(path, decode_values: true).first rescue Diplomat::KeyNotFound nil end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems