Method: ComplianceEngine::Check#hiera

Defined in:
lib/compliance_engine/check.rb

#hieraHash

Returns the Puppet class parameters of the check

Returns:

  • (Hash)

    the Puppet class parameters of the check



17
18
19
20
21
22
23
# File 'lib/compliance_engine/check.rb', line 17

def hiera
  return @hiera unless @hiera.nil?

  return @hiera = nil unless type == 'puppet-class-parameter'

  @hiera = { settings['parameter'] => settings['value'] }
end