Method: Inspec::Resources::YamlConfig#parse
- Defined in:
- lib/resources/yaml.rb
#parse(content) ⇒ Object
override file load and parse hash from yaml
29 30 31 32 33 |
# File 'lib/resources/yaml.rb', line 29 def parse(content) YAML.load(content) rescue => e raise Inspec::Exceptions::ResourceFailed, "Unable to parse YAML: #{e.}" end |