homebrew-cask-versions/lib/cask/cli/checklinks.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
391 B
Ruby

class Cask::CLI::Checklinks < Cask::CLI::Base
def self.run(*args)
casks_to_check = args.empty? ? Cask.all : args.map { |arg| Cask.load(arg) }
casks_to_check.each do |cask|
odebug "Checking links for Cask #{cask}"
checker = Cask::LinkChecker.new(cask)
checker.run
puts checker.summary
end
end
def self.help
"checks for bad Cask links"
end
end