Method: Inspec::Resources::Bond#read_content
- Defined in:
- lib/resources/bond.rb
#read_content ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/resources/bond.rb', line 26 def read_content # parse the file @content = @file.content @params = SimpleConfig.new( @file.content, assignment_regex: /^\s*([^:]*?)\s*:\s*(.*?)\s*$/, multiple_values: true, ).params if @file.exist? @loaded = true @content end |