Class: ConcourseJobFactory
- Inherits:
-
Object
- Object
- ConcourseJobFactory
- Defined in:
- lib/preflight_check/concourse_job_factory.rb
Instance Method Summary collapse
Instance Method Details
#build(job_info) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/preflight_check/concourse_job_factory.rb', line 5 def build(job_info) dependencies = [] job_info['plan'].each do |dependency| name = dependency['get'] || dependency['put'] dependencies << ConcourseJobDependency.new(name: name) unless name.nil? end ConcourseJob.new(name: job_info['name'], dependencies: dependencies) end |