Method: Inspec::Profile#register_metadata_attributes

Defined in:
lib/inspec/profile.rb

#register_metadata_attributesObject



128
129
130
131
132
133
134
135
136
# File 'lib/inspec/profile.rb', line 128

def 
  if .params.key?(:attributes)
    .params[:attributes].each do |attribute|
      attr_dup = attribute.dup
      name = attr_dup.delete(:name)
      @runner_context.register_attribute(name, attr_dup)
    end
  end
end