Class: ForemanOpenscap::MessageCleaner

Inherits:
Object
  • Object
show all
Defined in:
lib/foreman_openscap/message_cleaner.rb

Instance Method Summary collapse

Instance Method Details

#cleanObject



3
4
5
6
7
8
9
# File 'lib/foreman_openscap/message_cleaner.rb', line 3

def clean
  ForemanOpenscap::Policy.unscoped.all.find_in_batches do |batch|
    batch.each do |policy|
      process_policy policy
    end
  end
end