Module: Unleash

Defined in:
lib/unleash.rb,
lib/unleash/client.rb,
lib/unleash/context.rb,
lib/unleash/variant.rb,
lib/unleash/version.rb,
lib/unleash/util/http.rb,
lib/unleash/strategies.rb,
lib/unleash/spec_version.rb,
lib/unleash/configuration.rb,
lib/unleash/toggle_fetcher.rb,
lib/unleash/metrics_reporter.rb,
lib/unleash/bootstrap/handler.rb,
lib/unleash/scheduled_executor.rb,
lib/unleash/bootstrap/configuration.rb,
lib/unleash/bootstrap/provider/base.rb,
lib/unleash/bootstrap/provider/from_url.rb,
lib/unleash/bootstrap/provider/from_file.rb

Defined Under Namespace

Modules: Bootstrap, Util Classes: Client, Configuration, Context, DefaultOverrideError, MetricsReporter, ScheduledExecutor, Strategies, ToggleFetcher, Variant

Constant Summary collapse

TIME_RESOLUTION =
3
STRATEGIES =

Deprecated: Use Unleash.configure to add custom strategies

self.configuration.strategies
VERSION =
"6.0.8".freeze
CLIENT_SPECIFICATION_VERSION =
"5.1.7".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



13
14
15
# File 'lib/unleash.rb', line 13

def configuration
  @configuration
end

.engineObject

Returns the value of attribute engine.



13
14
15
# File 'lib/unleash.rb', line 13

def engine
  @engine
end

.loggerObject

Returns the value of attribute logger.



13
14
15
# File 'lib/unleash.rb', line 13

def logger
  @logger
end

.reporterObject

Returns the value of attribute reporter.



13
14
15
# File 'lib/unleash.rb', line 13

def reporter
  @reporter
end

.toggle_fetcherObject

Returns the value of attribute toggle_fetcher.



13
14
15
# File 'lib/unleash.rb', line 13

def toggle_fetcher
  @toggle_fetcher
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Support for configuration via yield:

Yields:



22
23
24
25
26
27
# File 'lib/unleash.rb', line 22

def self.configure
  yield(configuration)

  self.configuration.validate!
  self.configuration.refresh_backup_file!
end

.strategiesObject



29
30
31
# File 'lib/unleash.rb', line 29

def self.strategies
  self.configuration.strategies
end