Class: FeatureCleanerJob

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/sidekiq/feature_cleaner_job.rb

Instance Method Summary collapse

Instance Method Details

#performObject



6
7
8
9
10
11
# File 'app/sidekiq/feature_cleaner_job.rb', line 6

def perform
  Rails.logger.info "FeatureCleanerJob Removing: #{removed_features.join(', ')}"
  removed_features.each do |feature|
    Flipper.remove(feature)
  end
end

#removed_featuresObject (private)



15
16
17
# File 'app/sidekiq/feature_cleaner_job.rb', line 15

def removed_features
  @removed_features ||= Flipper.features.collect(&:name) - FLIPPER_FEATURE_CONFIG['features'].keys
end