Class: Bosh::Director::DeploymentPlan::ResurrectionInstancePlan
- Inherits:
-
InstancePlan
- Object
- InstancePlan
- Bosh::Director::DeploymentPlan::ResurrectionInstancePlan
- Defined in:
- lib/bosh/director/deployment_plan/instance_plan.rb
Instance Attribute Summary
Attributes inherited from InstancePlan
#desired_instance, #existing_instance, #instance, #network_plans, #recreate_deployment, #skip_drain
Instance Method Summary collapse
Methods inherited from InstancePlan
#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?
Constructor Details
This class inherits a constructor from Bosh::Director::DeploymentPlan::InstancePlan
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 |
#spec ⇒ Object
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 |