Method: Inspec::Resources::Bond#read_content

Defined in:
lib/inspec/resources/bond.rb

#read_contentObject



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/inspec/resources/bond.rb', line 27

def read_content
  if @file.exist?
    @params = SimpleConfig.new(
      @content,
      assignment_regex: /^\s*([^:]*?)\s*:\s*(.*?)\s*$/,
      multiple_values: true
    ).params
  end
  @loaded = true
  @content
end