lib/henry/task/cucumber_task.rb in henry-container-0.1.19 vs lib/henry/task/cucumber_task.rb in henry-container-0.1.20
- old
+ new
@@ -36,10 +36,10 @@
if !(self.generated_reports || []).empty? && !(self.report_recipients || []).empty?
tgz_path = ".henry/#{DateTime.now.strftime(TIME_FORMAT)}_#{self.name}.tgz"
`tar czf #{tgz_path} #{self.generated_reports.join(' ')}`
- Henry::EmailClient.send_file("#{DateTime.now.strftime(TIME_FORMAT)}_#{self.name}.tgz", self.report_recipients.uniq, "[Henry Reports] #{self.name}")
+ Henry::EmailClient.send_file(tgz_path, self.report_recipients.uniq, "[Henry Reports] #{self.name}")
`rm #{tgz_path}`
end
super