lib/core/core_setup_init.rb
# Internal setup function to re-organize steps as described by
# :setup/:steps section and data property :step
#
Internal setup function to re-organize steps as described by
:setup/:steps section and data property :step
Internal setup function to re - organize steps as described by : setup / : steps section and data property : step
def _setup_reorganize_steps(steps_unordered, steps, setup_steps)
      steps << steps_unordered
      build_steps = [{ :order => {} }]
      build_step = 0
      step_name = nil
      Lorj.debug(3, "Building setup step position '%s'", build_step)
      steps.each_index do |step_index|
        steps[step_index].each do |attr|
          attr_name = attr.keys[0]
          attr_def = attr[attr_name]
          unless attr_def[:setup]
            Lorj.debug(2, "'%s' is ignored. configured with :account = '%s'",
                       attr_name, attr_def[:setup])
            next
          end
          step_name = _setup_ros_get_step_name(attr_def)
          next if _setup_ros_same_step_name(build_steps[build_step],
                                            step_index, step_name, attr_name)
          build_step = _setup_ros_set_step(:build_steps => build_steps,
                                           :build_step => build_step,
                                           :setup_steps => setup_steps,
                                           :step_index => step_index,
                                           :step_name => step_name,
                                           :attr_name => attr_name)
          _setup_ros_add_attribute(build_steps[build_step][:order],
                                   step_index, attr_name)
        end
      end
      if build_steps.last[:name].nil?
        _setup_ros_set_step(:build_steps => build_steps,
                            :setup_steps => setup_steps,
                            :step_index => steps.length - 1,
                            :attr_name => :default)
      end
      build_steps
    end
def _setup_reorganize_steps ( steps_unordered , steps , setup_steps ) steps << steps_unordered build_steps = [ { :order => { } } ] build_step = 0 step_name = nil Lorj . debug ( 3 , "Building setup step position '%s'" , build_step ) steps . each_index do | step_index | steps [ step_index ] . each do | attr | attr_name = attr . keys [ 0 ] attr_def = attr [ attr_name ] unless attr_def [ :setup ] Lorj . debug ( 2 , "'%s' is ignored. configured with :account = '%s'" , attr_name , attr_def [ :setup ] ) next end step_name = _setup_ros_get_step_name ( attr_def ) next if _setup_ros_same_step_name ( build_steps [ build_step ] , step_index , step_name , attr_name ) build_step = _setup_ros_set_step ( :build_steps => build_steps , :build_step => build_step , :setup_steps => setup_steps , :step_index => step_index , :step_name => step_name , :attr_name => attr_name ) _setup_ros_add_attribute ( build_steps [ build_step ] [ :order ] , step_index , attr_name ) end end if build_steps . last [ :name ] . nil? _setup_ros_set_step ( :build_steps => build_steps , :setup_steps => setup_steps , :step_index => steps . length - 1 , :attr_name => :default ) end build_steps end
Internal setup function to re-organize steps as described by
:setup/:steps section and data property :step
Internal setup function to re - organize steps as described by : setup / : steps section and data property : step
# build the steps attributes #  cur_step = build_steps[build_step]
steps_unordered
<not_specific>
steps
<not_specific>
setup_steps
<not_specific>