Method: MailRunner::ArchivistBot.archive_stack
- Defined in:
- lib/mail_runner/archive_manager.rb
.archive_stack ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/mail_runner/archive_manager.rb', line 14 def self.archive_stack $logger.info("Archivist") { "Stack Height:: #{stack_height}"} while stack_height > 0 $logger.info("Archivist") { "#archive_stack:: Processing stack item:: #{stack_height}"} msg, archive = pop_from_stack if archive["destination"] == 'local' deliver_to_local_archive(msg, archive) else deliver_to_cloud_archive(msg, archive) end end end |