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`
15 lines
416 B
Ruby
15 lines
416 B
Ruby
class Cask::CLI::Zap < Cask::CLI::Base
|
|
def self.run(*args)
|
|
raise CaskUnspecifiedError if args.empty?
|
|
cask_names = args.reject { |a| a.chars.first == '-' }
|
|
cask_names.each do |cask_name|
|
|
odebug "Zapping Cask #{cask_name}"
|
|
cask = Cask.load(cask_name)
|
|
Cask::Installer.new(cask).zap
|
|
end
|
|
end
|
|
|
|
def self.help
|
|
"zaps all files associated with the cask of the given name"
|
|
end
|
|
end
|