Cleanup after each Cask.
This commit is contained in:
parent
7308409684
commit
b4381ddcaa
@ -45,13 +45,10 @@ module Hbc
|
||||
end
|
||||
|
||||
def run
|
||||
at_exit do
|
||||
cleanup
|
||||
end
|
||||
|
||||
Dir.chdir git_root do
|
||||
modified_cask_files.zip(modified_casks).each do |cask_file, cask|
|
||||
audit(cask, cask_file)
|
||||
Cleanup.run(cask) if cleanup?
|
||||
end
|
||||
end
|
||||
report_failures
|
||||
@ -121,9 +118,6 @@ module Hbc
|
||||
"#{failed_casks.join(" ")}"
|
||||
end
|
||||
|
||||
def cleanup
|
||||
Cleanup.run if cleanup?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user