Class: ConcourseYmlValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/preflight_check/concourse_yml_validator.rb

Direct Known Subclasses

PreflightCheck::Validator

Instance Method Summary collapse

Instance Method Details

#validate(path:) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/preflight_check/concourse_yml_validator.rb', line 8

def validate(path:)
  yml_info = read_yml_file(path)
  resources = init_resources(yml_info['resources'])
  jobs = init_job(yml_info['jobs'])

  correlator = ConcourseCorrelator.new
  correlator.process_jobs(jobs: jobs, resources: resources)
end