Sha256: 03d8a00f6ab8712b5fe3a27cc2f0f47a77308f0a51ca3bbcf1c8ded4770b0754

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

module NeetoCompliance
  class SitemapConfigVerifier < Base
    def local_copy
      "public/sitemap.xml"
    end

    def commons_copy
      NeetoCompliance::NeetoCommons.path.join "common_files", "sitemap.xml"
    end

    def verify_command
      "diff -N #{commons_copy} #{local_copy}"
    end

    def valid?
      `#{verify_command}`.empty?
    end

    def autofix_command
      "cp #{commons_copy} #{local_copy}"
    end

    def apps_exception_list
      ["neeto-kb-web"]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
neeto-compliance-1.0.58 lib/neeto_compliance/verifiers/sitemap_config_verifier.rb