Module: LaunchDarkly::Integrations::Consul
- Defined in:
- lib/ldclient-rb/integrations/consul.rb
Overview
Integration with [Consul](www.consul.io/).
Note that in order to use this integration, you must first install the gem ‘diplomat`.
Class Method Summary collapse
-
.default_prefix ⇒ String
Default value for the ‘prefix` option for Consul.new_feature_store.
-
.new_feature_store(opts = {}) ⇒ LaunchDarkly::Interfaces::FeatureStore
Creates a Consul-backed persistent feature store.
Class Method Details
.default_prefix ⇒ String
Default value for the ‘prefix` option for new_feature_store.
19 20 21 |
# File 'lib/ldclient-rb/integrations/consul.rb', line 19 def self.default_prefix 'launchdarkly' end |
.new_feature_store(opts = {}) ⇒ LaunchDarkly::Interfaces::FeatureStore
Creates a Consul-backed persistent feature store.
To use this method, you must first install the gem ‘diplomat`. Then, put the object returned by this method into the `feature_store` property of your client configuration (Config).
39 40 41 42 |
# File 'lib/ldclient-rb/integrations/consul.rb', line 39 def self.new_feature_store(opts = {}) core = LaunchDarkly::Impl::Integrations::Consul::ConsulFeatureStoreCore.new(opts) LaunchDarkly::Integrations::Util::CachingStoreWrapper.new(core, opts) end |