Class: Roast::Workflow::StepFactory
- Inherits:
-
Object
- Object
- Roast::Workflow::StepFactory
- Defined in:
- lib/roast/workflow/step_factory.rb
Overview
Factory for creating step instances based on step characteristics
Class Method Summary collapse
-
.create(workflow, step_name, options = {}) ⇒ BaseStep
Create a step instance based on the step type and characteristics.
Class Method Details
.create(workflow, step_name, options = {}) ⇒ BaseStep
Create a step instance based on the step type and characteristics
14 15 16 17 18 19 20 21 22 |
# File 'lib/roast/workflow/step_factory.rb', line 14 def create(workflow, step_name, = {}) name = normalize_step_name(step_name) # Determine the step class based on characteristics step_class = determine_step_class(name, ) # Create the step instance with appropriate parameters build_step_instance(step_class, workflow, name, ) end |