lib/henry/task/rspec_task.rb in henry-container-0.1.38 vs lib/henry/task/rspec_task.rb in henry-container-0.1.39
- old
+ new
@@ -35,10 +35,10 @@
OUT_PATH
end
def after_execute
if !(self.generated_reports || []).empty? && !(self.report_recipients || []).empty?
- tgz_path = ".henry/#{DateTime.now.strftime(TIME_FORMAT)}_#{self.name}.tgz"
+ tgz_path = "#{self.base_output_path}/#{DateTime.now.strftime(TIME_FORMAT)}_#{self.name}.tgz"
`tar czf "#{tgz_path}" "#{self.generated_reports.join('" "')}"`
Henry::EmailClient.send_file(tgz_path, self.report_recipients.uniq, "[Henry Reports] #{self.name}")