Class: Bosh::Director::DeploymentPlan::Steps::UpdateStep
- Defined in:
- lib/bosh/director/deployment_plan/steps/update_step.rb
Instance Method Summary collapse
-
#initialize(base_job, event_log, resource_pools, deployment_plan, multi_job_updater, cloud, blobstore) ⇒ UpdateStep
constructor
A new instance of UpdateStep.
- #perform ⇒ Object
Constructor Details
#initialize(base_job, event_log, resource_pools, deployment_plan, multi_job_updater, cloud, blobstore) ⇒ UpdateStep
Returns a new instance of UpdateStep.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/bosh/director/deployment_plan/steps/update_step.rb', line 5 def initialize(base_job, event_log, resource_pools, deployment_plan, multi_job_updater, cloud, blobstore) @base_job = base_job @logger = base_job.logger @event_log = event_log @resource_pools = resource_pools @cloud = cloud @blobstore = blobstore @deployment_plan = deployment_plan @multi_job_updater = multi_job_updater end |
Instance Method Details
#perform ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/bosh/director/deployment_plan/steps/update_step.rb', line 17 def perform begin @logger.info('Updating deployment') assemble update_jobs @logger.info('Committing updates') @deployment_plan.persist_updates! @logger.info('Finished updating deployment') ensure @deployment_plan.update_stemcell_references! end end |