Class: Roast::Workflow::ValidationCommand

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

Overview

Handles the validation command logic for the CLI

Defined Under Namespace

Classes: ValidationResults

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ValidationCommand

Returns a new instance of ValidationCommand.



7
8
9
# File 'lib/roast/workflow/validation_command.rb', line 7

def initialize(options = {})
  @options = options
end

Instance Method Details

#execute(workflow_path = nil) ⇒ Object



11
12
13
14
# File 'lib/roast/workflow/validation_command.rb', line 11

def execute(workflow_path = nil)
  workflow_files = resolve_workflow_files(workflow_path)
  validate_workflows(workflow_files)
end