Class: NeetoCompliance::RolesVerifier

Inherits:
Base
  • Object
show all
Defined in:
lib/neeto_compliance/verifiers/roles_verifier.rb

Overview

To verify if the ‘roles.yml` file exist in the host application.

Instance Method Summary collapse

Methods inherited from Base

#app_is_exception?, #app_name, #apps_exception_list, #audit, #auto_correct!, #autofix_suggestion, #error_message, #print_description, #process, #verifier_name

Instance Method Details

#autofix_commandObject



18
19
20
# File 'lib/neeto_compliance/verifiers/roles_verifier.rb', line 18

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

#commons_copyObject



10
11
12
# File 'lib/neeto_compliance/verifiers/roles_verifier.rb', line 10

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

#local_copyObject



6
7
8
# File 'lib/neeto_compliance/verifiers/roles_verifier.rb', line 6

def local_copy
  "config/roles.yml"
end

#valid?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/neeto_compliance/verifiers/roles_verifier.rb', line 14

def valid?
  File.exist?(local_copy)
end