Sha256: 5ec5da5dedc4f7c8b7f66831703f167b57d0d50627fb2f831473e48f169953f6
Contents?: true
Size: 683 Bytes
Versions: 5
Compression:
Stored size: 683 Bytes
Contents
# encoding: utf-8 usage 'validate-links [options]' aliases :validate_links, :vlink summary 'validate links in site' be_hidden description <<-EOS Validates the site’s links. By default, both internal and external links will be checked. EOS flag :i, :internal, 'validate internal links only' flag :e, :external, 'validate external links only' module Nanoc::CLI::Commands class ValidateLinks < ::Nanoc::CLI::CommandRunner def run checks = [] checks << 'ilinks' if options[:internal] checks << 'elinks' if options[:external] Nanoc::CLI.run [ 'check', checks ].flatten end end end runner Nanoc::CLI::Commands::ValidateLinks
Version data entries
5 entries across 5 versions & 1 rubygems