Sha256: 470feccb40b95189f28d25caf74e496db2c40ae1df578b8af989b40d37ddb0a6

Contents?: true

Size: 537 Bytes

Versions: 11

Compression:

Stored size: 537 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.has_key?(:internal) && params[:internal]
      @include_external = params.has_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

11 entries across 11 versions & 1 rubygems

Version Path
nanoc-3.6.7 lib/nanoc/extra/validators/links.rb
nanoc-3.6.6 lib/nanoc/extra/validators/links.rb
nanoc-3.6.5 lib/nanoc/extra/validators/links.rb
nanoc-3.6.4 lib/nanoc/extra/validators/links.rb
nanoc-3.6.3 lib/nanoc/extra/validators/links.rb
nanoc-3.6.2 lib/nanoc/extra/validators/links.rb
nanoc-3.6.1 lib/nanoc/extra/validators/links.rb
nanoc-3.6.0 lib/nanoc/extra/validators/links.rb
nanoc-3.5.0 lib/nanoc/extra/validators/links.rb
nanoc-3.5.0b2 lib/nanoc/extra/validators/links.rb
nanoc-3.5.0b1 lib/nanoc/extra/validators/links.rb