Class: Bosh::Director::CompiledRelease::Manifest

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/compiled_release/manifest.rb

Instance Method Summary collapse

Constructor Details

#initialize(manifest_hash) ⇒ Manifest

Returns a new instance of Manifest.



4
5
6
# File 'lib/bosh/director/compiled_release/manifest.rb', line 4

def initialize(manifest_hash)
  @manifest = manifest_hash
end

Instance Method Details

#dependency_key(package_name) ⇒ Object



14
15
16
# File 'lib/bosh/director/compiled_release/manifest.rb', line 14

def dependency_key(package_name)
  KeyGenerator.new.dependency_key_from_manifest(package_name, @manifest['compiled_packages'])
end

#has_matching_package(package_name, stemcell_os, stemcell_version, dependency_key) ⇒ Object



8
9
10
11
12
# File 'lib/bosh/director/compiled_release/manifest.rb', line 8

def has_matching_package(package_name, stemcell_os, stemcell_version, dependency_key)

  "#{stemcell_os}/#{stemcell_version}" == stemcell_os_and_version(package_name) &&
      dependency_key == dependency_key(package_name)
end