allomov
12/19/2016 - 12:15 AM

mantra-properties-test.rb

manifest_path = "/Users/allomov/work/altoros/github/mantra/spec/assets/integration/manifest.yml"
manifest = Mantra::Manifest.new(manifest_path)
job_properties_array = manifest.jobs.map do |job|
  job.hash? ? job.content["properties"] : nil
end.compact
job_properties = Mantra::Manifest::Element.create({}).content