You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
326 B
15 lines
326 B
12 years ago
|
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
|