Class: DeployRunner
Instance Attribute Summary collapse
-
#cloud ⇒ Object
readonly
Returns the value of attribute cloud.
-
#lock_opt ⇒ Object
readonly
Returns the value of attribute lock_opt.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
-
#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?, #banner, #bootstrap_aws, #build_nodes, #calculate_templates, #conf, #create_infranodes_json, #duration, #gen_ssh_key, #gen_x509_cert, #info, #infranodes, #is_mac?, #linux, #lock, #logs, #parse_log, #update_lock, #update_template, #warn, #wombat, #workstations
Constructor Details
#initialize(opts) ⇒ DeployRunner
Returns a new instance of DeployRunner.
9 10 11 12 13 14 |
# File 'lib/wombat/deploy.rb', line 9 def initialize(opts) @stack = opts.stack @cloud = opts.cloud.nil? ? "aws" : opts.cloud @lock_opt = opts.update_lock @template_opt = opts.create_template end |
Instance Attribute Details
#cloud ⇒ Object (readonly)
Returns the value of attribute cloud.
7 8 9 |
# File 'lib/wombat/deploy.rb', line 7 def cloud @cloud end |
#lock_opt ⇒ Object (readonly)
Returns the value of attribute lock_opt.
7 8 9 |
# File 'lib/wombat/deploy.rb', line 7 def lock_opt @lock_opt end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
7 8 9 |
# File 'lib/wombat/deploy.rb', line 7 def stack @stack end |
#template_opt ⇒ Object (readonly)
Returns the value of attribute template_opt.
7 8 9 |
# File 'lib/wombat/deploy.rb', line 7 def template_opt @template_opt end |
Instance Method Details
#start ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/wombat/deploy.rb', line 16 def start case cloud when 'aws' update_lock(cloud) if lock_opt update_template(cloud) if template_opt create_stack(stack) end end |