homebrew-cask-versions/lib/cask/cli/checklinks.rb
Paul Hinze 78834bfbd0 extract link checker from audit process
did not duplicate content lentgh check in preparation for the removal of
content_length as discussed in #131
2013-03-13 12:41:16 -05:00

14 lines
326 B
Ruby

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