Class: Bosh::Director::DeploymentPlan::ApplySpec
- Defined in:
- lib/bosh/director/deployment_plan/instance_spec.rb
Instance Method Summary collapse
-
#initialize(full_spec) ⇒ ApplySpec
constructor
A new instance of ApplySpec.
- #spec ⇒ Object
Constructor Details
#initialize(full_spec) ⇒ ApplySpec
Returns a new instance of ApplySpec.
148 149 150 |
# File 'lib/bosh/director/deployment_plan/instance_spec.rb', line 148 def initialize(full_spec) @full_spec = full_spec end |
Instance Method Details
#spec ⇒ Object
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/bosh/director/deployment_plan/instance_spec.rb', line 152 def spec keys = [ 'deployment', 'job', 'index', 'name', 'id', 'az', 'networks', 'packages', 'dns_domain_name', 'configuration_hash', 'persistent_disk', 'template_hashes', 'rendered_templates_archive', ] @full_spec.select {|k,_| keys.include?(k) } end |