Class: Wombat::DeleteRunner

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/wombat/delete.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) ⇒ DeleteRunner

Returns a new instance of DeleteRunner.



12
13
14
15
# File 'lib/wombat/delete.rb', line 12

def initialize(opts)
  @stack = opts.stack
  @cloud = opts.cloud.nil? ? "aws" : opts.cloud
end

Instance Attribute Details

#cloudObject (readonly)

Returns the value of attribute cloud.



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

def cloud
  @cloud
end

#stackObject (readonly)

Returns the value of attribute stack.



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

def stack
  @stack
end

Instance Method Details

#startObject



17
18
19
# File 'lib/wombat/delete.rb', line 17

def start
  cfn_delete_stack(stack)
end