class CFManifests::Loader

Public Class Methods

new(file, resolver) click to toggle source
# File lib/manifests/loader.rb, line 11
def initialize(file, resolver)
  @file = file
  @resolver = resolver
end

Public Instance Methods

manifest() click to toggle source
# File lib/manifests/loader.rb, line 16
def manifest
  info = build(@file)
  normalize! info
  resolve info, @resolver
end

Private Instance Methods

from_manifest(path) click to toggle source

expand a path relative to the manifest file's directory

# File lib/manifests/loader.rb, line 25
def from_manifest(path)
  return path unless @file

  File.expand_path(path, File.dirname(@file))
end