Class: VagrantPlugins::VagrantBosh::Deployment::ManifestFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-bosh/deployment/manifest_factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(uploadable_release_factory, ui) ⇒ ManifestFactory

Returns a new instance of ManifestFactory.



7
8
9
10
# File 'lib/vagrant-bosh/deployment/manifest_factory.rb', line 7

def initialize(uploadable_release_factory, ui)
  @uploadable_release_factory = uploadable_release_factory
  @ui = ui
end

Instance Method Details

#new_manifest(manifest) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/vagrant-bosh/deployment/manifest_factory.rb', line 12

def new_manifest(manifest)
  if manifest.empty?
    EmptyManifest.new
  else
    Manifest.new(manifest, @uploadable_release_factory, @ui)
  end
end