Class: Bosh::Director::DeploymentPlan::CompilationJob
- Defined in:
- lib/bosh/director/deployment_plan/compilation_instance_pool.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#instance_plans ⇒ Object
readonly
Returns the value of attribute instance_plans.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#stemcell ⇒ Object
readonly
Returns the value of attribute stemcell.
-
#vm_extensions ⇒ Object
readonly
Returns the value of attribute vm_extensions.
-
#vm_type ⇒ Object
readonly
Returns the value of attribute vm_type.
Instance Method Summary collapse
- #add_instance_plans(instance_plans) ⇒ Object
- #availability_zones ⇒ Object
- #compilation? ⇒ Boolean
- #default_network ⇒ Object
-
#initialize(vm_type, vm_extensions, stemcell, env, compilation_network_name) ⇒ CompilationJob
constructor
A new instance of CompilationJob.
- #link_spec ⇒ Object
- #package_spec ⇒ Object
- #persistent_disk_type ⇒ Object
- #properties ⇒ Object
- #spec ⇒ Object
- #update_spec ⇒ Object
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
#env ⇒ Object (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_plans ⇒ Object (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 |
#name ⇒ Object (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 |
#stemcell ⇒ Object (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_extensions ⇒ Object (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_type ⇒ Object (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_zones ⇒ Object
224 225 226 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 224 def availability_zones nil end |
#compilation? ⇒ Boolean
258 259 260 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 258 def compilation? true end |
#default_network ⇒ Object
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 |
#link_spec ⇒ Object
246 247 248 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 246 def link_spec {} end |
#package_spec ⇒ Object
238 239 240 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 238 def package_spec {} end |
#persistent_disk_type ⇒ Object
254 255 256 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 254 def persistent_disk_type nil end |
#properties ⇒ Object
242 243 244 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 242 def properties {} end |
#spec ⇒ Object
232 233 234 235 236 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 232 def spec { 'name' => @name } end |
#update_spec ⇒ Object
250 251 252 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 250 def update_spec nil end |