Class: Destroy

Inherits:
Command show all
Defined in:
lib/maws/commands/destroy.rb

Instance Attribute Summary

Attributes inherited from Command

#connection, #maws

Instance Method Summary collapse

Methods inherited from Command

#add_generic_options, #add_specific_options, #initialize, #instances, #process_options, #verify_configs, #verify_options

Constructor Details

This class inherits a constructor from Command

Instance Method Details

#descriptionObject



4
5
6
# File 'lib/maws/commands/destroy.rb', line 4

def description
  "destroy - permenantly delete specified instances"
end

#run!Object



8
9
10
# File 'lib/maws/commands/destroy.rb', line 8

def run!
  instances.specified.alive.each {|i| i.destroy}
end