Class: Bosh::Director::Errand::DeploymentPreparer
- Defined in:
- lib/bosh/director/errand/deployment_preparer.rb
Instance Method Summary collapse
-
#initialize(deployment, job, event_log, base_job) ⇒ DeploymentPreparer
constructor
A new instance of DeploymentPreparer.
- #prepare_deployment ⇒ Object
- #prepare_job ⇒ Object
Constructor Details
#initialize(deployment, job, event_log, base_job) ⇒ DeploymentPreparer
Returns a new instance of DeploymentPreparer.
7 8 9 10 11 12 |
# File 'lib/bosh/director/errand/deployment_preparer.rb', line 7 def initialize(deployment, job, event_log, base_job) @deployment = deployment @job = job @event_log = event_log @base_job = base_job end |
Instance Method Details
#prepare_deployment ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/bosh/director/errand/deployment_preparer.rb', line 14 def prepare_deployment assembler = DeploymentPlan::Assembler.new(@deployment) preparer = DeploymentPlan::Preparer.new(@base_job, assembler) preparer.prepare compiler = PackageCompiler.new(@deployment) compiler.compile end |
#prepare_job ⇒ Object
24 25 26 27 |
# File 'lib/bosh/director/errand/deployment_preparer.rb', line 24 def prepare_job @job.bind_unallocated_vms @job.bind_instance_networks end |