Class: Stop
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/stop.rb', line 4 def description "stop - stop specified EC2 instances that are running" end |
#run! ⇒ Object
8 9 10 |
# File 'lib/maws/commands/stop.rb', line 8 def run! instances.specified.each {|i| i.stop if i.respond_to?(:stop)} end |