Class: Protege::MailProvisioningJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Protege::MailProvisioningJob
- Defined in:
- app/jobs/protege/mail_provisioning_job.rb
Overview
Pushes the current mail provisioning manifest to the self-hosted MTA accessory. Enqueued from
+EmailDomain+'s after_commit so a domain save (create/update/destroy) isn't coupled to the
accessory's availability — the push happens just after the record commits, and its retry covers a
momentarily-down MTA.
A no-op in provider mode: Gateway.push_mail_provisioning returns early when no accessory is
configured (no MAIL_RELAY_HOST), so this job is harmless when there is nothing to provision.
Instance Method Summary collapse
-
#perform ⇒ void
Push the whole domain manifest to the mail accessory's control listener.
Instance Method Details
#perform ⇒ void
This method returns an undefined value.
Push the whole domain manifest to the mail accessory's control listener.
17 18 19 |
# File 'app/jobs/protege/mail_provisioning_job.rb', line 17 def perform Gateway.push_mail_provisioning end |