Sha256: d2a34ce045e5d88c0b7a60894453110f30dab7535d87157639a97bf5114c2042
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
module Flipper module Toggles class Boolean < Toggle def enable(thing) adapter.write key, thing.enabled_value end def disable(thing) adapter.delete key adapter.delete "#{gate.key_prefix}#{Gate::Separator}#{Gates::Actor::Key}" adapter.delete "#{gate.key_prefix}#{Gate::Separator}#{Gates::Group::Key}" adapter.delete "#{gate.key_prefix}#{Gate::Separator}#{Gates::PercentageOfActors::Key}" adapter.delete "#{gate.key_prefix}#{Gate::Separator}#{Gates::PercentageOfRandom::Key}" end def value adapter.read key end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flipper-0.1.1 | lib/flipper/toggles/boolean.rb |
flipper-0.1.0 | lib/flipper/toggles/boolean.rb |