Module: LaunchDarkly::Integrations::Consul
- Defined in:
- lib/ldclient-rb/integrations.rb,
lib/ldclient-rb/integrations/consul.rb
Overview
Integration with Consul.
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, &block) ⇒ 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.
12 13 14 |
# File 'lib/ldclient-rb/integrations/consul.rb', line 12 def self.default_prefix 'launchdarkly' end |
.new_feature_store(opts, &block) ⇒ 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).
32 33 34 35 |
# File 'lib/ldclient-rb/integrations/consul.rb', line 32 def self.new_feature_store(opts, &block) core = LaunchDarkly::Impl::Integrations::Consul::ConsulFeatureStoreCore.new(opts) return LaunchDarkly::Integrations::Util::CachingStoreWrapper.new(core, opts) end |