module FeatureGuard
Constants
- VERSION
Attributes
redis[W]
Public Class Methods
all_flags()
click to toggle source
# File lib/feature_guard.rb, line 10 def all_flags redis.hgetall(flags_hkey).keys.inject({}) { |h, f| h[f] = enabled? f; h } end
all_ramps()
click to toggle source
# File lib/feature_guard.rb, line 14 def all_ramps redis.hgetall(ramps_hkey).keys.inject({}) { |h, f| h[f] = ramp_val f; h } end
flags_hkey()
click to toggle source
# File lib/feature_guard.rb, line 18 def flags_hkey "featureguard_flags" end
ramps_hkey()
click to toggle source
# File lib/feature_guard.rb, line 22 def ramps_hkey "featureguard_ramps" end
redis()
click to toggle source
# File lib/feature_guard.rb, line 26 def redis @redis ||= Redis.new end