Sha256: 7111e8160bbcd379b36c018dfc6962b4e2256598900c9d209f53b242b2bd6dd0
Contents?: true
Size: 444 Bytes
Versions: 37
Compression:
Stored size: 444 Bytes
Contents
require 'bundler/setup' require 'redis' require 'rollout' require 'flipper' require 'flipper/adapters/rollout' redis = Redis.new rollout = Rollout.new(redis) rollout.activate(:stats) adapter = Flipper::Adapters::Rollout.new(rollout) flipper = Flipper.new(adapter) if flipper[:stats].enabled? puts "Enabled!" else puts "Disabled!" end rollout.deactivate(:stats) if flipper[:stats].enabled? puts "Enabled!" else puts "Disabled!" end
Version data entries
37 entries across 37 versions & 1 rubygems