Sha256: b9e400637ce9365c67b99aefdcb199173943e2908a57c169f8d0f01bc5b90b8f

Contents?: true

Size: 387 Bytes

Versions: 41

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

module Nanoc::Int::OutdatednessRules
  class NotWritten < Nanoc::Int::OutdatednessRule
    affects_props :raw_content, :attributes, :compiled_content, :path

    def apply(obj, _outdatedness_checker)
      if obj.raw_paths.values.flatten.compact.any? { |fn| !File.file?(fn) }
        Nanoc::Int::OutdatednessReasons::NotWritten
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
nanoc-4.7.10 lib/nanoc/base/services/outdatedness_rules/not_written.rb