Method: Inspec::AttributeRegistry#register_attribute
- Defined in:
- lib/inspec/attribute_registry.rb
#register_attribute(name, profile, options = {}) ⇒ Object
59 60 61 62 63 64 65 66 67 |
# File 'lib/inspec/attribute_registry.rb', line 59 def register_attribute(name, profile, = {}) # check for a profile override name if profile_exist?(profile) && list[profile][name] && .empty? list[profile][name] else list[profile] = {} unless profile_exist?(profile) list[profile][name] = Inspec::Attribute.new(name, ) end end |