class Bosh::Deployer::InstanceManager::Vcloud
Constants
- FakeRegistry
Attributes
config[R]
instance_manager[R]
logger[R]
Public Class Methods
new(instance_manager, config, logger)
click to toggle source
# File lib/bosh/deployer/instance_manager/vcloud.rb, line 8 def initialize(instance_manager, config, logger) @instance_manager = instance_manager @config = config @logger = logger end
Public Instance Methods
check_dependencies()
click to toggle source
# File lib/bosh/deployer/instance_manager/vcloud.rb, line 29 def check_dependencies if Bosh::Common.which(%w[genisoimage mkisofs]).nil? err("either of 'genisoimage' or 'mkisofs' commands must be present") end end
disk_size(cid)
click to toggle source
@return [Integer] size in MiB
# File lib/bosh/deployer/instance_manager/vcloud.rb, line 49 def disk_size(cid) instance_manager.cloud.get_disk_size_mb(cid) end
persistent_disk_changed?()
click to toggle source
# File lib/bosh/deployer/instance_manager/vcloud.rb, line 53 def persistent_disk_changed? config.resources['persistent_disk'] != disk_size(instance_manager.state.disk_cid) end
remote_tunnel()
click to toggle source
# File lib/bosh/deployer/instance_manager/vcloud.rb, line 14 def remote_tunnel # VCloud / vsphere does not use bosh-registry so no remote_tunnel # to bosh-registry is required end
start()
click to toggle source
# File lib/bosh/deployer/instance_manager/vcloud.rb, line 35 def start end
stop()
click to toggle source
# File lib/bosh/deployer/instance_manager/vcloud.rb, line 38 def stop end
update_spec(spec)
click to toggle source
# File lib/bosh/deployer/instance_manager/vcloud.rb, line 19 def update_spec(spec) properties = spec.properties properties['vcd'] = config.spec_properties['vcd'] || config.cloud_options['properties']['vcds'].first.dup properties['vcd']['address'] ||= properties['vcd']['url'] end
Private Instance Methods
registry()
click to toggle source
# File lib/bosh/deployer/instance_manager/vcloud.rb, line 62 def registry @registry ||= FakeRegistry.new(nil) end