Class: Roast::Workflow::Validators::StepCollector

Inherits:
Object
  • Object
show all
Defined in:
lib/roast/workflow/validators/step_collector.rb

Overview

Collects and caches all steps from a workflow configuration

Instance Method Summary collapse

Constructor Details

#initialize(parsed_yaml) ⇒ StepCollector

Returns a new instance of StepCollector.



8
9
10
11
# File 'lib/roast/workflow/validators/step_collector.rb', line 8

def initialize(parsed_yaml)
  @parsed_yaml = parsed_yaml
  @all_steps = nil
end

Instance Method Details

#all_stepsObject



13
14
15
# File 'lib/roast/workflow/validators/step_collector.rb', line 13

def all_steps
  @all_steps ||= collect_all_steps(@parsed_yaml)
end