Module: RedisCodeCov::Base

Included in:
Controller, Job
Defined in:
lib/redis_code_cov.rb

Overview

common code for various classes (controller, models, etc)

Instance Method Summary collapse

Instance Method Details

#redis_code_cov(key) ⇒ Object



12
13
14
15
16
17
# File 'lib/redis_code_cov.rb', line 12

def redis_code_cov key
  # => increment the counter unless ClassName.method_name is specifically excluded in initializer
  REDIS_CODE_COV.incr key unless EXCLUDE_REDIS_CODE_COV.include? key
rescue Exception => e
  # => TODO - for now just doing nothing
end