lib/core/core_setup_init.rb
# Internal setup function - Build list of ALL attributes required for an
# object
#
# It navigates on loaded dependencies to build the list of attributes.
Internal setup function - Build list of ALL attributes required for an
object

It navigates on loaded dependencies to build the list of attributes.
Internal setup function - Build list of ALL attributes required for an object It navigates on loaded dependencies to build the list of attributes .
def _setup_objects_attr_needs(dependencies, object_type)
      attrs = []
      objects = dependencies.rh_get(:objects, object_type, :objects)
      deps_objects = []
      objects.each do |o|
        attrs += dependencies.rh_get(:objects, o, :attrs)
        found_obj, deps_attrs = _setup_objects_attr_needs(dependencies, o)
        attrs += deps_attrs
        deps_objects += found_obj
      end
      [(objects + deps_objects).uniq, attrs.uniq]
    end
def _setup_objects_attr_needs ( dependencies , object_type ) attrs = [ ] objects = dependencies . rh_get ( :objects , object_type , :objects ) deps_objects = [ ] objects . each do | o | attrs += dependencies . rh_get ( :objects , o , :attrs ) found_obj , deps_attrs = _setup_objects_attr_needs ( dependencies , o ) attrs += deps_attrs deps_objects += found_obj end [ ( objects + deps_objects ) . uniq , attrs . uniq ] end
Internal setup function - Build list of ALL attributes required for an
object
Internal setup function - Build list of ALL attributes required for an object
dependencies
<not_specific>
object_type
<not_specific>