Class: UpdateRunner

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/wombat/update.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cloudObject (readonly)

Returns the value of attribute cloud.



6
7
8
# File 'lib/wombat/update.rb', line 6

def cloud
  @cloud
end

#update_fileObject (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

#startObject



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