lib/core/core_setup_init.rb
# Internal setup function initializing a model object
#
Internal setup function initializing a model object
Internal setup function initializing a model object
def _setup_identify_dep_init(dependencies, object_type, path = [])
      if path.include?(object_type)
        PrcLib.warning('Loop detection: Be careful! a loop is detected with'\
                       " the dependency from '%s' to '%s'. "\
                       'Dependency ignored.', path.join('/'), object_type)
        return false
      end
      return false if dependencies.rh_exist?(:objects, object_type)
      model_object = { :objects => [], :objects_attrs => [], :attrs => [] }
      dependencies.rh_set(model_object, :objects, object_type)
      true
    end
def _setup_identify_dep_init ( dependencies , object_type , path = [ ] ) if path . include? ( object_type ) PrcLib . warning ( 'Loop detection: Be careful! a loop is detected with' " the dependency from '%s' to '%s'. " 'Dependency ignored.' , path . join ( '/' ) , object_type ) return false end return false if dependencies . rh_exist? ( :objects , object_type ) model_object = { :objects => [ ] , :objects_attrs => [ ] , :attrs => [ ] } dependencies . rh_set ( model_object , :objects , object_type ) true end
Internal setup function initializing a model object
Internal setup function initializing a model object
dependencies
<not_specific>
object_type
<not_specific>
path
<not_specific>