lib/core/core_setup_init.rb
# Set the step data to the current order built.
#
# If the step has already been set, a warning is printed.
#
# * *returns*:
#   - +Return the
#
Set the step data to the current order built.
If the step has already been set, a warning is printed.

*returns*:
+Return the
Set the step data to the current order built . If the step has already been set a warning is printed . * returns * : + Return the
def _setup_ros_set_step(params)
      build_steps = params[:build_steps]
      build_step = params[:build_step]
      step_index = params[:step_index]
      step_name = params[:step_name]
      attr_name = 'of latest step'
      attr_name = params[:attr_name] unless params[:attr_name].nil?
      setup_step = params[:setup_steps][step_name]
      if setup_step.nil?
        PrcLib.warning("Attribute '%s': Setup step '%s' is not defined.",
                       attr_name, step_name)
        return build_step
      end
      step_found = _setup_ros_find_buildstep(build_steps, step_index,
                                             step_name)
      return build_step if step_found.nil?
      if step_found == build_steps.length
        step = { :order => { step_index => [] } }
        Lorj.debug(3, "Building setup step position '%s'", step_found)
        build_steps << step
      end
      build_step = step_found
      step = build_steps[build_step]
      return build_step if step[:name] == step_name
      step[:name] = step_name
      step[:desc] = setup_step[:desc]
      step[:explanation] = setup_step[:explanation]
      step[:pre_step_handler] = setup_step[:pre_step_function]
      step[:post_step_handler] = setup_step[:post_step_function]
      Lorj.debug(3, "Requested by '%s' attribute, setup step position '%s'"\
                    " is assigned to '%s'", attr_name,
                 build_steps.length - 1, step_name)
      build_step
    end
def _setup_ros_set_step ( params ) build_steps = params [ :build_steps ] build_step = params [ :build_step ] step_index = params [ :step_index ] step_name = params [ :step_name ] attr_name = 'of latest step' attr_name = params [ :attr_name ] unless params [ :attr_name ] . nil? setup_step = params [ :setup_steps ] [ step_name ] if setup_step . nil? PrcLib . warning ( "Attribute '%s': Setup step '%s' is not defined." , attr_name , step_name ) return build_step end step_found = _setup_ros_find_buildstep ( build_steps , step_index , step_name ) return build_step if step_found . nil? if step_found == build_steps . length step = { :order => { step_index => [ ] } } Lorj . debug ( 3 , "Building setup step position '%s'" , step_found ) build_steps << step end build_step = step_found step = build_steps [ build_step ] return build_step if step [ :name ] == step_name step [ :name ] = step_name step [ :desc ] = setup_step [ :desc ] step [ :explanation ] = setup_step [ :explanation ] step [ :pre_step_handler ] = setup_step [ :pre_step_function ] step [ :post_step_handler ] = setup_step [ :post_step_function ] Lorj . debug ( 3 , "Requested by '%s' attribute, setup step position '%s'" " is assigned to '%s'" , attr_name , build_steps . length - 1 , step_name ) build_step end
Set the step data to the current order built.
Set the step data to the current order built .
params
<not_specific>