Sha256: 7497de5a4def0f370c00f7cb88b473adb2beba61d79d856931c21c3217907071
Contents?: true
Size: 527 Bytes
Versions: 2
Compression:
Stored size: 527 Bytes
Contents
# encoding: utf-8 module Nanoc::Extra::Validators # @deprecated Use the Checking API or the `check` command instead class Links def initialize(_dir, _index_filenames, params = {}) @include_internal = params.key?(:internal) && params[:internal] @include_external = params.key?(:external) && params[:external] end def run checks = [] checks << 'ilinks' if options[:internal] checks << 'elinks' if options[:external] Nanoc::CLI.run ['check', checks].flatten end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.8.0 | lib/nanoc/extra/validators/links.rb |
nanoc-3.7.5 | lib/nanoc/extra/validators/links.rb |