Class: FeatureFlagger::Storage::FeatureKeysMigration
- Inherits:
-
Object
- Object
- FeatureFlagger::Storage::FeatureKeysMigration
- Defined in:
- lib/feature_flagger/storage/feature_keys_migration.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(from_redis, to_control) ⇒ FeatureKeysMigration
constructor
A new instance of FeatureKeysMigration.
Constructor Details
#initialize(from_redis, to_control) ⇒ FeatureKeysMigration
Returns a new instance of FeatureKeysMigration.
6 7 8 9 |
# File 'lib/feature_flagger/storage/feature_keys_migration.rb', line 6 def initialize(from_redis, to_control) @from_redis = from_redis @to_control = to_control end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/feature_flagger/storage/feature_keys_migration.rb', line 11 def call @from_redis.keys('*').map { |key| migrate_key(key) }.flatten end |