mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
* `zap` was previously supported as a noop for forward-compatibility * Also adds restrictions against relative paths in `uninstall :files` * Also documents safety conventions for `uninstall :files`
14 lines
265 B
Ruby
14 lines
265 B
Ruby
module Cask::CleanupHooks
|
|
def after_teardown
|
|
super
|
|
Cask.installed.each do |cask|
|
|
Cask::Installer.new(cask).tap do |installer|
|
|
installer.purge_versioned_files
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
class MiniTest::Spec
|
|
include Cask::CleanupHooks
|
|
end
|