Class: ExpireHostsMailer
- Inherits:
-
ApplicationMailer
- Object
- ApplicationMailer
- ExpireHostsMailer
- Defined in:
- app/mailers/expire_hosts_mailer.rb
Instance Method Summary collapse
- #deleted_hosts_notification(recipient, hosts) ⇒ Object
- #expiry_warning_notification(recipient, expiry_date, hosts) ⇒ Object
- #failed_to_delete_hosts_notification(recipient, hosts) ⇒ Object
- #failed_to_stop_hosts_notification(recipient, hosts) ⇒ Object
- #stopped_hosts_notification(recipient, delete_date, hosts) ⇒ Object
Instance Method Details
#deleted_hosts_notification(recipient, hosts) ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/mailers/expire_hosts_mailer.rb', line 6 def deleted_hosts_notification(recipient, hosts) build_mail( recipient: recipient, subject: N_('Deleted expired hosts in Foreman'), hosts: hosts ) end |
#expiry_warning_notification(recipient, expiry_date, hosts) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'app/mailers/expire_hosts_mailer.rb', line 39 def expiry_warning_notification(recipient, expiry_date, hosts) @expiry_date = expiry_date build_mail( recipient: recipient, subject: N_('Expiring hosts in foreman'), hosts: hosts ) end |
#failed_to_delete_hosts_notification(recipient, hosts) ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/mailers/expire_hosts_mailer.rb', line 14 def failed_to_delete_hosts_notification(recipient, hosts) build_mail( recipient: recipient, subject: N_('Failed to delete expired hosts in Foreman'), hosts: hosts ) end |
#failed_to_stop_hosts_notification(recipient, hosts) ⇒ Object
31 32 33 34 35 36 37 |
# File 'app/mailers/expire_hosts_mailer.rb', line 31 def failed_to_stop_hosts_notification(recipient, hosts) build_mail( recipient: recipient, subject: N_('Failed to stop expired hosts in Foreman'), hosts: hosts ) end |
#stopped_hosts_notification(recipient, delete_date, hosts) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'app/mailers/expire_hosts_mailer.rb', line 22 def stopped_hosts_notification(recipient, delete_date, hosts) @delete_date = delete_date build_mail( recipient: recipient, subject: N_('Stopped expired hosts in Foreman'), hosts: hosts ) end |