Class: CFManifests::Loader

Inherits:
Object
  • Object
show all
Includes:
Builder, Normalizer, Resolver
Defined in:
lib/manifests-cf-plugin/loader.rb

Constant Summary

Constants included from Normalizer

Normalizer::MANIFEST_META

Instance Method Summary collapse

Methods included from Resolver

#resolve

Methods included from Normalizer

#normalize!

Methods included from Builder

#build

Constructor Details

#initialize(file, resolver) ⇒ Loader

Returns a new instance of Loader.



11
12
13
14
# File 'lib/manifests-cf-plugin/loader.rb', line 11

def initialize(file, resolver)
  @file = file
  @resolver = resolver
end

Instance Method Details

#manifestObject



16
17
18
19
20
# File 'lib/manifests-cf-plugin/loader.rb', line 16

def manifest
  info = build(@file)
  normalize! info
  resolve info, @resolver
end