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
permalink #initialize(*args) ⇒ StepProcessingCommand
Returns a new instance of StepProcessingCommand.
721 722 723 724 |
# File 'lib/commands.rb', line 721 def initialize(*args) super(*args) @step_commands = [] end |
Instance Attribute Details
Instance Method Details
permalink #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 |