homebrew-cask-versions/lib/cask/cli/checklinks.rb
Roland Walker b7573b3838 create abstract Cask::CLI::Base
from which all commands inherit.  Add `visible` method
for future use.
2014-06-20 15:06:29 -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