Class: Wombat::DeployRunner

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/wombat/deploy.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, #info, #infranodes, #is_mac?, #is_valid_json?, #linux, #lock, #logs, #parse_log, #update_lock, #update_template, #warn, #wombat, #workstations

Constructor Details

#initialize(opts) ⇒ DeployRunner

Returns a new instance of DeployRunner.



13
14
15
16
17
18
19
# File 'lib/wombat/deploy.rb', line 13

def initialize(opts)
  @stack = opts.stack
  @cloud = opts.cloud.nil? ? "aws" : opts.cloud
  @lock_opt = opts.update_lock
  @template_opt = opts.update_template
  @azure_async = opts.azure_async
end

Instance Attribute Details

#cloudObject (readonly)

Returns the value of attribute cloud.



10
11
12
# File 'lib/wombat/deploy.rb', line 10

def cloud
  @cloud
end

#lock_optObject (readonly)

Returns the value of attribute lock_opt.



10
11
12
# File 'lib/wombat/deploy.rb', line 10

def lock_opt
  @lock_opt
end

#resource_management_clientObject

Returns the value of attribute resource_management_client.



11
12
13
# File 'lib/wombat/deploy.rb', line 11

def resource_management_client
  @resource_management_client
end

#stackObject (readonly)

Returns the value of attribute stack.



10
11
12
# File 'lib/wombat/deploy.rb', line 10

def stack
  @stack
end

#template_optObject (readonly)

Returns the value of attribute template_opt.



10
11
12
# File 'lib/wombat/deploy.rb', line 10

def template_opt
  @template_opt
end

Instance Method Details

#startObject



21
22
23
24
25
# File 'lib/wombat/deploy.rb', line 21

def start
  update_lock(cloud) if lock_opt
  update_template(cloud) if template_opt
  create_stack(stack)
end