Class: Commands::StepProcessingCommand
- Defined in:
- lib/commands.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#step_commands ⇒ Object
Returns the value of attribute step_commands.
Attributes inherited from Command
#arg, #commands, #description, #logger, #name
Instance Method Summary collapse
-
#initialize(*args) ⇒ StepProcessingCommand
constructor
A new instance of StepProcessingCommand.
- #reorder_steps(jobflow, sc) ⇒ Object
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.
744 745 746 747 |
# File 'lib/commands.rb', line 744 def initialize(*args) super(*args) @step_commands = [] end |
Instance Attribute Details
#step_commands ⇒ Object
Returns the value of attribute step_commands.
742 743 744 |
# File 'lib/commands.rb', line 742 def step_commands @step_commands end |
Instance Method Details
#reorder_steps(jobflow, sc) ⇒ Object
749 750 751 752 753 754 755 756 |
# File 'lib/commands.rb', line 749 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 |