lib/core/core_setup_init.rb
# Internal setup function to build the list of attribute deps
#
Internal setup function to build the list of attribute deps
Internal setup function to build the list of attribute deps
def _setup_bs_objs(attrs_done, dependencies, attr_name)
      Lorj.debug(2, "-- Checking '%s' attribute --", attr_name)
      data = Lorj.data.auto_section_data(attr_name)
      element = _setup_bs_objs_init(data)
      return element if data.nil?
      return element unless data.rh_exist?(:list_values, :object) ||
                            data[:depends_on].is_a?(Array)
      _setup_bs_list_query(dependencies, attr_name, data, element)
      _setup_bs_objs_new_dep(dependencies, attr_name, element)
      element[:depends_on] = []
      element[:depends_on] = data[:depends_on] if data[:depends_on].is_a?(Array)
      group = element[:group]
      if group[:objs].length > 0
        _setup_set_group_level(dependencies, attrs_done, attr_name,
                               group, group[:objs].sort)
      else
        _setup_set_group_level(dependencies, attrs_done, attr_name,
                               group, [element[:obj]])
      end
      _setup_attrs_depends_on(dependencies, attr_name,
                              element[:depends_on])
      element
    end
def _setup_bs_objs ( attrs_done , dependencies , attr_name ) Lorj . debug ( 2 , "-- Checking '%s' attribute --" , attr_name ) data = Lorj . data . auto_section_data ( attr_name ) element = _setup_bs_objs_init ( data ) return element if data . nil? return element unless data . rh_exist? ( :list_values , :object ) || data [ :depends_on ] . is_a? ( Array ) _setup_bs_list_query ( dependencies , attr_name , data , element ) _setup_bs_objs_new_dep ( dependencies , attr_name , element ) element [ :depends_on ] = [ ] element [ :depends_on ] = data [ :depends_on ] if data [ :depends_on ] . is_a? ( Array ) group = element [ :group ] if group [ :objs ] . length > 0 _setup_set_group_level ( dependencies , attrs_done , attr_name , group , group [ :objs ] . sort ) else _setup_set_group_level ( dependencies , attrs_done , attr_name , group , [ element [ :obj ] ] ) end _setup_attrs_depends_on ( dependencies , attr_name , element [ :depends_on ] ) element end
Internal setup function to build the list of attribute deps
Internal setup function to build the list of attribute deps
# Check if this attr requires an object query. # ensure attribute dependency is dynamically added to the list of # object deps.
attrs_done
<not_specific>
dependencies
<not_specific>
attr_name
<not_specific>