Class: Start

Inherits:
Command show all
Defined in:
lib/maws/commands/start.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/start.rb', line 4

def description
  "start - start specified EC2 instances that were stopped"
end

#run!Object



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

def run!
  instances.specified.each {|i| i.start if i.respond_to?(:start)}
end