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.
132 133 134 |
# File 'lib/bosh/director/deployment_plan/instance_spec.rb', line 132 def initialize(full_spec) @full_spec = full_spec end |
Instance Method Details
#spec ⇒ Object
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/bosh/director/deployment_plan/instance_spec.rb', line 136 def spec keys = [ 'deployment', 'job', 'index', 'id', 'networks', 'packages', 'dns_domain_name', 'configuration_hash', 'persistent_disk', 'template_hashes', 'rendered_templates_archive', ] @full_spec.select {|k,_| keys.include?(k) } end |