Sha256: 29e9def2ac0cdac5671abe29ca16c3e476c2cc2bb87af8d8597f60d191c86bcd

Contents?: true

Size: 443 Bytes

Versions: 4

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

module NeetoCompliance
  # To verify if the `roles.yml` file exist in the host application.
  class RolesVerifier < Base
    def local_copy
      "config/roles.yml"
    end

    def commons_copy
      NeetoCompliance::NeetoCommons.path.join "common_files/roles.yml"
    end

    def valid?
      File.exist?(local_copy)
    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/roles_verifier.rb
neetob-0.1.2 neeto_compliance/lib/neeto_compliance/verifiers/roles_verifier.rb
neetob-0.1.1 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/roles_verifier.rb
neetob-0.1.0 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/roles_verifier.rb