# 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