Class: Bosh::Director::DeploymentPlan::ApplySpec

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/deployment_plan/instance_spec.rb

Instance Method Summary collapse

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

#specObject



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