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_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, 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
Constructor Details
#initialize(vm_type, stemcell, env, compilation_network_name) ⇒ CompilationJob
Returns a new instance of CompilationJob.
133 134 135 136 137 138 139 140 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 133 def initialize(vm_type, stemcell, env, compilation_network_name) @vm_type = vm_type @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.
130 131 132 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 130 def env @env end |
#instance_plans ⇒ Object (readonly)
Returns the value of attribute instance_plans.
131 132 133 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 131 def instance_plans @instance_plans end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
130 131 132 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 130 def name @name end |
#stemcell ⇒ Object (readonly)
Returns the value of attribute stemcell.
130 131 132 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 130 def stemcell @stemcell end |
#vm_type ⇒ Object (readonly)
Returns the value of attribute vm_type.
130 131 132 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 130 def vm_type @vm_type end |
Instance Method Details
#add_instance_plans(instance_plans) ⇒ Object
153 154 155 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 153 def add_instance_plans(instance_plans) @instance_plans = instance_plans end |
#availability_zones ⇒ Object
149 150 151 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 149 def availability_zones nil end |
#compilation? ⇒ Boolean
179 180 181 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 179 def compilation? true end |
#default_network ⇒ Object
142 143 144 145 146 147 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 142 def default_network { 'dns' => @network, 'gateway' => @network } end |
#link_spec ⇒ Object
171 172 173 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 171 def link_spec {} end |
#package_spec ⇒ Object
163 164 165 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 163 def package_spec {} end |
#persistent_disk_type ⇒ Object
175 176 177 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 175 def persistent_disk_type nil end |
#properties ⇒ Object
167 168 169 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 167 def properties {} end |
#spec ⇒ Object
157 158 159 160 161 |
# File 'lib/bosh/director/deployment_plan/compilation_instance_pool.rb', line 157 def spec { 'name' => @name } end |