Class: Roast::Workflow::Validators::DependencyValidator
- Inherits:
-
BaseValidator
- Object
- BaseValidator
- Roast::Workflow::Validators::DependencyValidator
- Defined in:
- lib/roast/workflow/validators/dependency_validator.rb
Overview
Validates dependencies: tools, step references, and resources
Instance Attribute Summary
Attributes inherited from BaseValidator
Instance Method Summary collapse
-
#initialize(parsed_yaml, workflow_path = nil, step_collector: nil) ⇒ DependencyValidator
constructor
A new instance of DependencyValidator.
- #validate ⇒ Object
Methods inherited from BaseValidator
Constructor Details
#initialize(parsed_yaml, workflow_path = nil, step_collector: nil) ⇒ DependencyValidator
Returns a new instance of DependencyValidator.
8 9 10 11 |
# File 'lib/roast/workflow/validators/dependency_validator.rb', line 8 def initialize(parsed_yaml, workflow_path = nil, step_collector: nil) super(parsed_yaml, workflow_path) @step_collector = step_collector || StepCollector.new(parsed_yaml) end |
Instance Method Details
#validate ⇒ Object
13 14 15 16 17 |
# File 'lib/roast/workflow/validators/dependency_validator.rb', line 13 def validate validate_tool_dependencies validate_step_references validate_resource_dependencies end |