Class: ConsulApplicationSettings::Providers::Consul

Inherits:
Abstract
  • Object
show all
Defined in:
lib/consul_application_settings/providers/consul.rb

Overview

Provides access to settings stored in Consul

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

This class inherits a constructor from ConsulApplicationSettings::Providers::Abstract

Instance Method Details

#get(path) ⇒ Object



7
8
9
10
11
12
# File 'lib/consul_application_settings/providers/consul.rb', line 7

def get(path)
  full_path = absolute_key_path(path)
  value = get_from_consul(full_path)
  value = resolve_tree_response(value, full_path)
  ConsulApplicationSettings::Utils.cast_consul_value(value)
end