Sha256: 1be43574b89857875736ea8626dbafcc94588522efec9ff1cd602fc1d786fb8c

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 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.git"]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
neetob-0.1.2 neeto_compliance/lib/neeto_compliance/verifiers/sitemap_config_verifier.rb
neetob-0.1.1 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sitemap_config_verifier.rb
neetob-0.1.0 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sitemap_config_verifier.rb