mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 14:26:45 -06:00
* 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
15 lines
391 B
Ruby
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
|