Method: Inspec::ProfileContext#register_attribute
- Defined in:
- lib/inspec/profile_context.rb
#register_attribute(name, options = {}) ⇒ Object
187 188 189 190 191 192 193 194 |
# File 'lib/inspec/profile_context.rb', line 187 def register_attribute(name, = {}) # we need to return an attribute object, to allow dermination of default values attr = Attribute.new(name, ) # read value from given gived values attr.value = @conf['attributes'][attr.name] unless @conf['attributes'].nil? @attributes.push(attr) attr.value end |