Method: Inspec::Resources::LimitsConf#read_params

Defined in:
lib/resources/limits_conf.rb

#read_paramsObject



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/resources/limits_conf.rb', line 29

def read_params
  return @params if defined?(@params)

  # parse the file
  conf = SimpleConfig.new(
    @content,
    assignment_regex: /^\s*(\S+?)\s+(.*?)\s+(.*?)\s+(.*?)\s*$/,
    key_values: 3,
    multiple_values: true,
  )
  @params = conf.params
end