Module: MovableInk::Consul::Kv

Defined in:
lib/movable_ink/consul/consul.rb

Class Method Summary collapse

Class Method Details

.get(*args) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/movable_ink/consul/consul.rb', line 11

def self.get(*args)
  begin
    result = Diplomat::Kv.get(*args)
    JSON.parse(result) if !result.nil?
  rescue JSON::ParserError
    result
  end
end