95: def shutdown
96: routine = fetch_routine_config(:shutdown) rescue {}
97:
98: li "All machines in #{current_machine_group} will be shutdown".bright
99: if routine && routine.disks
100: if routine.disks.destroy
101: li "The following filesystems will be destroyed:".bright
102: li routine.disks.destroy.keys.join($/).bright
103: end
104: end
105:
106: execute_check :medium
107:
108: machines = @rr.execute
109:
110: li $/, "The following instances have been destroyed:"
111: machines.each do |machine|
112: li '%s %s ' % [machine.name.bright, machine.instid]
113: end
114:
115: end