lib/backup_report.rb in keepitsafe-0.2.1 vs lib/backup_report.rb in keepitsafe-0.2.2
- old
+ new
@@ -20,14 +20,14 @@
# Send email report
mail = MailBuilder.new("#{File.dirname(__FILE__)}/../email/report").build({:backups => backups, :start_time => start_time, :end_time => end_time})
mail.to to
mail.from from
- mail.subject "Backup report"
+ mail.subject "Backup report: #{backups.select {|b| b.error != nil}.count} Error"
mail.delivery_method.settings = mail.delivery_method.settings.merge(mail_options)
mail.deliver!
- puts "Sent backup report to: #{to}"
+ puts "\nSent backup report to: #{to}"
end
end
\ No newline at end of file