Module: Synchroniser::Ingestor
Defined Under Namespace
Instance Attribute Summary collapse
-
#container ⇒ Object
Returns the value of attribute container.
Instance Method Summary collapse
Instance Attribute Details
#container ⇒ Object
Returns the value of attribute container.
3 4 5 |
# File 'lib/synchroniser/ingestor.rb', line 3 def container @container end |
Instance Method Details
#sync ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/synchroniser/ingestor.rb', line 5 def sync @container.find_all_flags.each {|flag| flag.status = 0 flag.save } SyncItem.logger.info("Reset status for the set '#{@container.group}'") ingest.each {|item| item.save } @container.delete_expired_items end |