Class: Bosh::Director::DeploymentPlan::Preparer
- Defined in:
- lib/bosh/director/deployment_plan/preparer.rb
Instance Method Summary collapse
-
#initialize(job, assembler) ⇒ Preparer
constructor
A new instance of Preparer.
- #prepare ⇒ Object
Constructor Details
#initialize(job, assembler) ⇒ Preparer
Returns a new instance of Preparer.
4 5 6 7 |
# File 'lib/bosh/director/deployment_plan/preparer.rb', line 4 def initialize(job, assembler) @job = job @assembler = assembler end |
Instance Method Details
#prepare ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/bosh/director/deployment_plan/preparer.rb', line 9 def prepare job.begin_stage('Preparing deployment', 9) job.track_and_log('Binding deployment') do @assembler.bind_deployment end job.track_and_log('Binding releases') do @assembler.bind_releases end job.track_and_log('Binding existing deployment') do @assembler.bind_existing_deployment end job.track_and_log('Binding resource pools') do @assembler.bind_resource_pools end job.track_and_log('Binding stemcells') do @assembler.bind_stemcells end job.track_and_log('Binding templates') do @assembler.bind_templates end job.track_and_log('Binding properties') do @assembler.bind_properties end job.track_and_log('Binding unallocated VMs') do @assembler.bind_unallocated_vms end job.track_and_log('Binding instance networks') do @assembler.bind_instance_networks end end |