Class: SplitIoClient::RedisMetricsFixer
- Inherits:
-
Object
- Object
- SplitIoClient::RedisMetricsFixer
- Defined in:
- lib/splitclient-rb/redis_metrics_fixer.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(metrics_repository, config) ⇒ RedisMetricsFixer
constructor
A new instance of RedisMetricsFixer.
Constructor Details
#initialize(metrics_repository, config) ⇒ RedisMetricsFixer
Returns a new instance of RedisMetricsFixer.
5 6 7 8 |
# File 'lib/splitclient-rb/redis_metrics_fixer.rb', line 5 def initialize(metrics_repository, config) @metrics_repository = metrics_repository @config = config end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/splitclient-rb/redis_metrics_fixer.rb', line 10 def call return if ENV['SPLITCLIENT_ENV'] == 'test' || @config.mode == :standalone fixer_thread if defined?(PhusionPassenger) PhusionPassenger.on_event(:starting_worker_process) do |forked| fixer_thread if forked end end end |