Class: Bosh::Director::DeploymentPlan::ResurrectionInstancePlan
Instance Attribute Summary
Attributes inherited from InstancePlan
#desired_instance, #existing_instance, #instance, #network_plans, #recreate_deployment, #skip_drain
Instance Method Summary
collapse
#already_detached?, #changed?, #changes, #configuration_changed?, #desired_az_name, #dns_changed?, #existing?, #find_existing_reservation_for_network, #initialize, #instance_model, #job_changed?, #mark_desired_network_plans_as_existing, #needs_recreate?, #needs_restart?, #needs_shutting_down?, #network_address, #network_addresses, #network_plan_for_network, #network_settings, #networks_changed?, #new?, #obsolete?, #packages_changed?, #persist_current_spec, #persistent_disk_changed?, #release_all_network_plans, #release_obsolete_network_plans, #should_be_ignored?, #state_changed?
Instance Method Details
#needs_disk? ⇒ Boolean
337
338
339
|
# File 'lib/bosh/director/deployment_plan/instance_plan.rb', line 337
def needs_disk?
@existing_instance.persistent_disk_cid
end
|
#network_settings_hash ⇒ Object
329
330
331
|
# File 'lib/bosh/director/deployment_plan/instance_plan.rb', line 329
def network_settings_hash
@existing_instance.spec_p('networks')
end
|
333
334
335
|
# File 'lib/bosh/director/deployment_plan/instance_plan.rb', line 333
def spec
InstanceSpec.create_from_database(@existing_instance.spec, @instance)
end
|
#templates ⇒ Object
341
342
343
344
345
346
347
|
# File 'lib/bosh/director/deployment_plan/instance_plan.rb', line 341
def templates
@existing_instance.templates.map do |template_model|
template = Template.new(nil, template_model.name)
template.bind_existing_model(template_model)
template
end
end
|