Class: Bosh::Director::DeploymentPlan::CompilationJob

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vm_type, vm_extensions, stemcell, env, compilation_network_name) ⇒ CompilationJob

Returns a new instance of CompilationJob.



207
208
209
210
211
212
213
214
215
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 207

def initialize(vm_type, vm_extensions, stemcell, env, compilation_network_name)
  @vm_type = vm_type
  @vm_extensions = vm_extensions
  @stemcell = stemcell
  @env = env
  @network = compilation_network_name
  @name = "compilation-#{SecureRandom.uuid}"
  @instance_plans = []
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



204
205
206
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 204

def env
  @env
end

#instance_plansObject (readonly)

Returns the value of attribute instance_plans.



205
206
207
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 205

def instance_plans
  @instance_plans
end

#nameObject (readonly)

Returns the value of attribute name.



204
205
206
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 204

def name
  @name
end

#stemcellObject (readonly)

Returns the value of attribute stemcell.



204
205
206
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 204

def stemcell
  @stemcell
end

#vm_extensionsObject (readonly)

Returns the value of attribute vm_extensions.



204
205
206
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 204

def vm_extensions
  @vm_extensions
end

#vm_typeObject (readonly)

Returns the value of attribute vm_type.



204
205
206
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 204

def vm_type
  @vm_type
end

Instance Method Details

#add_instance_plans(instance_plans) ⇒ Object



228
229
230
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 228

def add_instance_plans(instance_plans)
  @instance_plans = instance_plans
end

#availability_zonesObject



224
225
226
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 224

def availability_zones
  nil
end

#compilation?Boolean

Returns:

  • (Boolean)


258
259
260
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 258

def compilation?
  true
end

#default_networkObject



217
218
219
220
221
222
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 217

def default_network
  {
    'dns' => @network,
    'gateway' => @network
  }
end


246
247
248
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 246

def link_spec
  {}
end

#package_specObject



238
239
240
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 238

def package_spec
  {}
end

#persistent_disk_typeObject



254
255
256
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 254

def persistent_disk_type
  nil
end

#propertiesObject



242
243
244
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 242

def properties
  {}
end

#specObject



232
233
234
235
236
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 232

def spec
  {
    'name' => @name
  }
end

#update_specObject



250
251
252
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 250

def update_spec
  nil
end