Class: Ddr::Batch::BatchProcessorRunMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Ddr::Batch::BatchProcessorRunMailer
- Defined in:
- app/mailers/ddr/batch/batch_processor_run_mailer.rb
Instance Method Summary collapse
Instance Method Details
#send_notification(batch) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/mailers/ddr/batch/batch_processor_run_mailer.rb', line 4 def send_notification(batch) @batch = batch @title = "Batch Processor Run #{@batch.status}" @host = `uname -n`.strip @subject = "[#{@host}] #{@title}" ["details.txt"] = File.read(@batch.logfile.path) mail(from: from_address, to: @batch.user.email, subject: @subject) end |