Cleanup after each Cask.

This commit is contained in:
Markus Reiter 2017-03-06 18:41:36 +01:00
parent 7308409684
commit b4381ddcaa

View File

@ -45,13 +45,10 @@ module Hbc
end end
def run def run
at_exit do
cleanup
end
Dir.chdir git_root do Dir.chdir git_root do
modified_cask_files.zip(modified_casks).each do |cask_file, cask| modified_cask_files.zip(modified_casks).each do |cask_file, cask|
audit(cask, cask_file) audit(cask, cask_file)
Cleanup.run(cask) if cleanup?
end end
end end
report_failures report_failures
@ -121,9 +118,6 @@ module Hbc
"#{failed_casks.join(" ")}" "#{failed_casks.join(" ")}"
end end
def cleanup
Cleanup.run if cleanup?
end
end end
end end
end end