Sha256: 5cf0c1e056a0a0e6266c622a4b0a26b43ac457007ff997c3a3f4ecc3f6081f42

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

module NeetoCompliance
  class NewrelicVerifier < Base
    def local_copy
      "config/newrelic.yml"
    end

    def commons_copy
      NeetoCompliance::NeetoCommons.path.join "common_files/newrelic.yml"
    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
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

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