Class: Teardown
Instance Attribute Summary
Attributes inherited from Command
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
#description ⇒ Object
4 5 6 |
# File 'lib/maws/commands/teardown.rb', line 4 def description "teardown - destroys all instances that are not specified, but exist on AWS" end |
#run! ⇒ Object
8 9 10 |
# File 'lib/maws/commands/teardown.rb', line 8 def run! instances.aws.not_specified.alive.each {|i| i.destroy} end |