Method: Instance::EC2#stop

Defined in:
lib/maws/instance/ec2.rb

#stopObject



95
96
97
98
99
100
101
# File 'lib/maws/instance/ec2.rb', line 95

def stop
  return unless alive?
  if status == 'running'
    connection.ec2.stop_instances(aws_id)
    info "stopping EC2 #{name} (#{aws_id})"
  end
end