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