Method: Inspec::Metadata.from_yaml
- Defined in:
- lib/inspec/metadata.rb
.from_yaml(ref, contents, profile_id, logger = nil) ⇒ Object
191 192 193 194 195 |
# File 'lib/inspec/metadata.rb', line 191 def self.from_yaml(ref, contents, profile_id, logger = nil) res = Metadata.new(ref, logger) res.params = YAML.load(contents) finalize(res, profile_id, logger) end |