Method: BigBang::KillCmd#kill

Defined in:
lib/bigbang/kill.rb

#kill(name) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
# File 'lib/bigbang/kill.rb', line 58

def kill(name)
	kill_elb
	running = running_instances
	instances = universe_running_instances(running, universe_tags(name))
	addresses = get_addresses
	instances.each do |i|
		kill_dns_entry(i)
		kill_eip(i, addresses)
		kill_instance(i)
	end
end