Module: VMCManifests::Builder

Included in:
Loader
Defined in:
lib/manifests-vmc-plugin/loader/builder.rb,
lib/manifests-vmc-plugin/lib/manifests-vmc-plugin/loader/builder.rb

Instance Method Summary collapse

Instance Method Details

#build(file) ⇒ Object

parse a manifest and merge with its inherited manifests

Raises:



4
5
6
7
8
9
10
11
12
# File 'lib/manifests-vmc-plugin/loader/builder.rb', line 4

def build(file)
  manifest = YAML.load_file file

  Array(manifest["inherit"]).each do |path|
    manifest = merge_parent(path, manifest)
  end

  manifest
end