lib/ring/sqa/alarm/email.rb in ring-sqa-0.0.23 vs lib/ring/sqa/alarm/email.rb in ring-sqa-0.1.0

- old
+ new

@@ -5,15 +5,16 @@ class Alarm class Email SERVER = 'localhost' - def send msg + def send opts + short, long = opts[:short], opts[:long] @from = CFG.email.from @to = [CFG.email.to].flatten prefix = CFG.email.prefix? ? CFG.email.prefix : '' - @subject = prefix + msg[:short] - @body = msg[:long] + @subject = prefix + short + @body = long send_email compose_email rescue => error Log.error "Email raised '#{error.class}' with message '#{error.message}'" end