homebrew-cask-versions/lib/cask/cli/zap.rb
Roland Walker 707db75505 standardize Cask (capitalized) when used as noun
* was already done, but inconsistently
* this style follows homebrew Formula
* covers user-facing messages, test titles, comments
* some related minor orthography is included, such
  as the consistent spelling of our project name as
  "homebrew-cask"
* grammar nits
2014-10-08 10:39:51 -04:00

15 lines
403 B
Ruby

class Cask::CLI::Zap < Cask::CLI::Base
def self.run(*args)
cask_names = cask_names_from(args)
raise CaskUnspecifiedError if cask_names.empty?
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