Class: UpdateRunner
Instance Attribute Summary collapse
-
#cloud ⇒ Object
readonly
Returns the value of attribute cloud.
-
#update_file ⇒ Object
readonly
Returns the value of attribute update_file.
Instance Method Summary collapse
-
#initialize(opts) ⇒ UpdateRunner
constructor
A new instance of UpdateRunner.
- #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) ⇒ UpdateRunner
Returns a new instance of UpdateRunner.
8 9 10 11 |
# File 'lib/wombat/update.rb', line 8 def initialize(opts) @cloud = opts.cloud.nil? ? "aws" : opts.cloud @update_file = opts.file.nil? ? "all" : opts.file end |
Instance Attribute Details
#cloud ⇒ Object (readonly)
Returns the value of attribute cloud.
6 7 8 |
# File 'lib/wombat/update.rb', line 6 def cloud @cloud end |
#update_file ⇒ Object (readonly)
Returns the value of attribute update_file.
6 7 8 |
# File 'lib/wombat/update.rb', line 6 def update_file @update_file end |
Instance Method Details
#start ⇒ Object
13 14 15 16 |
# File 'lib/wombat/update.rb', line 13 def start update_lock(cloud) if /(all|lock)/.match(update_file) update_template(cloud) if /(all|template)/.match(update_file) end |