13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/opticon/mailer.rb', line 13
def failure_notification(service, message, recipients, from)
subject = "HTTP Service Failure: #{service}"
if ARGV.include?("-v")
puts "Mailing notification:"
puts " TO: #{recipients.inspect}"
puts " SUBJECT: #{subject}"
puts " FROM: #{from}"
puts " SERVICE: #{service}"
puts " MESSAGE: #{message}"
end
self.recipients recipients
self.from from
self.subject subject
self.body :service => service, :message => message
end
|