Class: Commands::StepProcessingCommand

Inherits:
Command show all
Defined in:
lib/commands.rb

Direct Known Subclasses

AddJobFlowStepsCommand, CreateJobFlowCommand

Instance Attribute Summary collapse

Attributes inherited from Command

#arg, #commands, #description, #logger, #name

Instance Method Summary collapse

Methods inherited from Command

#enact, #get_field, #has_value, #have, #option, #require, #require_single_jobflow, #resolve, #validate

Constructor Details

#initialize(*args) ⇒ StepProcessingCommand

Returns a new instance of StepProcessingCommand.

[View source]

721
722
723
724
# File 'lib/commands.rb', line 721

def initialize(*args)
  super(*args)
  @step_commands = []
end

Instance Attribute Details

#step_commandsObject

Returns the value of attribute step_commands.


719
720
721
# File 'lib/commands.rb', line 719

def step_commands
  @step_commands
end

Instance Method Details

#reorder_steps(jobflow, sc) ⇒ Object

[View source]

726
727
728
729
730
731
732
733
# File 'lib/commands.rb', line 726

def reorder_steps(jobflow, sc)
  new_step_commands = sc.dup
  for step_command in sc do
    new_step_commands = step_command.reorder_steps(jobflow, new_step_commands)
  end

  return new_step_commands
end