Class: Wombat::DeployRunner
- Inherits:
-
Object
- Object
- Wombat::DeployRunner
- Includes:
- Common
- Defined in:
- lib/wombat/deploy.rb
Instance Attribute Summary collapse
-
#cloud ⇒ Object
readonly
Returns the value of attribute cloud.
-
#lock_opt ⇒ Object
readonly
Returns the value of attribute lock_opt.
-
#nosuffix ⇒ Object
readonly
Returns the value of attribute nosuffix.
-
#resource_management_client ⇒ Object
Returns the value of attribute resource_management_client.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
-
#stack_name ⇒ Object
readonly
Returns the value of attribute stack_name.
-
#template_opt ⇒ Object
readonly
Returns the value of attribute template_opt.
Instance Method Summary collapse
-
#initialize(opts) ⇒ DeployRunner
constructor
A new instance of DeployRunner.
- #start ⇒ Object
Methods included from Common
#audio?, #azure_provider_tag, #banner, #bootstrap_aws, #build_nodes, #calculate_templates, #conf, #connect_azure, #create_infranodes_json, #create_resource_group, #deployment_state, #duration, #follow_azure_deployment, #info, #infranodes, #is_mac?, #is_valid_json?, #linux, #list_outstanding_deployment_operations, #lock, #logs, #parse_log, #update_lock, #update_template, #warn, #wombat, #workstations
Constructor Details
#initialize(opts) ⇒ DeployRunner
Returns a new instance of DeployRunner.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/wombat/deploy.rb', line 12 def initialize(opts) @stack = opts.stack @stack_name = opts.stack_name @cloud = opts.cloud.nil? ? "aws" : opts.cloud @lock_opt = opts.update_lock @template_opt = opts.update_template @azure_async = opts.azure_async @wombat_yml = opts.wombat_yml @nosuffix = opts.nosuffix.nil? ? false : true end |
Instance Attribute Details
#cloud ⇒ Object (readonly)
Returns the value of attribute cloud.
9 10 11 |
# File 'lib/wombat/deploy.rb', line 9 def cloud @cloud end |
#lock_opt ⇒ Object (readonly)
Returns the value of attribute lock_opt.
9 10 11 |
# File 'lib/wombat/deploy.rb', line 9 def lock_opt @lock_opt end |
#nosuffix ⇒ Object (readonly)
Returns the value of attribute nosuffix.
9 10 11 |
# File 'lib/wombat/deploy.rb', line 9 def nosuffix @nosuffix end |
#resource_management_client ⇒ Object
Returns the value of attribute resource_management_client.
10 11 12 |
# File 'lib/wombat/deploy.rb', line 10 def resource_management_client @resource_management_client end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
9 10 11 |
# File 'lib/wombat/deploy.rb', line 9 def stack @stack end |
#stack_name ⇒ Object (readonly)
Returns the value of attribute stack_name.
9 10 11 |
# File 'lib/wombat/deploy.rb', line 9 def stack_name @stack_name end |
#template_opt ⇒ Object (readonly)
Returns the value of attribute template_opt.
9 10 11 |
# File 'lib/wombat/deploy.rb', line 9 def template_opt @template_opt end |
Instance Method Details
#start ⇒ Object
23 24 25 26 27 |
# File 'lib/wombat/deploy.rb', line 23 def start update_lock(cloud) if lock_opt update_template(cloud) if template_opt create_stack(stack) end |