Sha256: 411ef34aef0dd01dcc692d6cbbca815d7fbebfc3de8f10aeab2b81485595c224
Contents?: true
Size: 489 Bytes
Versions: 16
Compression:
Stored size: 489 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}" @host = `uname -n`.strip @subject = "[#{@host}] #{@title}" 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
16 entries across 16 versions & 1 rubygems