Sha256: abd09adf52c769c68a9714f19049f23ab1bdeb7cbfae2b54a90bd4e48c51844b
Contents?: true
Size: 624 Bytes
Versions: 10
Compression:
Stored size: 624 Bytes
Contents
module Ddr::Batch class BatchProcessorRunMailer < ActionMailer::Base default :from => "noreply@duke.edu" def send_notification(batch) @batch = batch @title = "Batch Processor Run #{@batch.status} #{@batch.outcome}" @host = `uname -n`.strip @subject = "[#{@host}] #{@title}" @size = @batch.batch_objects.size @handled = @batch.handled_count @success = @batch.success_count from = "#{`echo $USER`.strip}@#{@host}" attachments["details.txt"] = File.read(@batch.logfile.path) mail(from: from, to: @batch.user.email, subject: @subject) end end end
Version data entries
10 entries across 10 versions & 1 rubygems