Class: Nanoc::CLI::Commands::ValidateLinks

Inherits:
Nanoc::CLI::CommandRunner show all
Defined in:
lib/nanoc/cli/commands/validate-links.rb

Instance Method Summary (collapse)

Methods inherited from Nanoc::CLI::CommandRunner

#call, call, #debug?, #in_site_dir?, #load_site, #require_site, #site

Instance Method Details

- (Object) run



16
17
18
19
20
21
22
23
# File 'lib/nanoc/cli/commands/validate-links.rb', line 16

def run
  warn 'The `validate-links` command is deprecated. Please use the new `check` command instead.'

  checks = []
  checks << 'ilinks' if options[:internal]
  checks << 'elinks' if options[:external]
  Nanoc::CLI.run ['check', checks].flatten
end