Permalink
Browse files

udpated spacing on code examples

  • Loading branch information...
1 parent a5a2c21 commit d366ea6a744a5950f4d61955d966fbc4bc3e963f @pauldix committed Apr 24, 2010
@@ -12,7 +12,8 @@ def self.parse(xml)
reservation_sets = []
doc.elements.
- each("DescribeInstancesResponse/reservationSet/item") do |element|
+ each("DescribeInstancesResponse/reservationSet/item"
+ ) do |element|
reservation_sets << ReservationSet.build(element)
end
@@ -71,6 +72,7 @@ def self.build(xml_element)
:key_name => elements["keyName"].text,
:type => elements["instanceType"].text,
:launch_time => elements["launchTime"].text,
- :availability_zone => elements["placement/availabilityZone"].text)
+ :availability_zone =>
+ elements["placement/availabilityZone"].text)
end
end
@@ -1,4 +1,5 @@
-<DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-08-15/">
+<DescribeInstancesResponse
+ xmlns="http://ec2.amazonaws.com/doc/2009-08-15/">
<reservationSet>
<item>
<reservationId>r-44a5402d</reservationId>
@@ -16,8 +17,10 @@
<code>0</code>
<name>running</name>
</instanceState>
- <privateDnsName>10-251-50-132.ec2.internal</privateDnsName>
- <dnsName>ec2-72-44-33-4.compute-1.amazonaws.com</dnsName>
+ <privateDnsName>10-251-50-132.ec2.internal
+ </privateDnsName>
+ <dnsName>ec2-72-44-33-4.compute-1.amazonaws.com
+ </dnsName>
<keyName>example-key-name</keyName>
<amiLaunchIndex>23</amiLaunchIndex>
<productCodesSet>
@@ -26,10 +29,10 @@
<instanceType>m1.large</instanceType>
<launchTime>2007-08-07T11:54:42.000Z</launchTime>
<placement>
- <availabilityZone>us-east-1b</availabilityZone>
- </placement>
- <kernelId>aki-ba3adfd3</kernelId>
- <ramdiskId>ari-badbad00</ramdiskId>
+ <availabilityZone>us-east-1b</availabilityZone>
+ </placement>
+ <kernelId>aki-ba3adfd3</kernelId>
+ <ramdiskId>ari-badbad00</ramdiskId>
</item>
<item>
<instanceId>i-28a64435</instanceId>
@@ -38,8 +41,10 @@
<code>0</code>
<name>running</name>
</instanceState>
- <privateDnsName>10-251-50-134.ec2.internal</privateDnsName>
- <dnsName>ec2-72-44-33-6.compute-1.amazonaws.com</dnsName>
+ <privateDnsName>10-251-50-134.ec2.internal
+ </privateDnsName>
+ <dnsName>ec2-72-44-33-6.compute-1.amazonaws.com
+ </dnsName>
<keyName>example-key-name</keyName>
<amiLaunchIndex>23</amiLaunchIndex>
<productCodesSet>
@@ -48,10 +53,10 @@
<instanceType>m1.large</instanceType>
<launchTime>2007-08-07T11:54:42.000Z</launchTime>
<placement>
- <availabilityZone>us-east-1b</availabilityZone>
- </placement>
- <kernelId>aki-ba3adfd3</kernelId>
- <ramdiskId>ari-badbad00</ramdiskId>
+ <availabilityZone>us-east-1b</availabilityZone>
+ </placement>
+ <kernelId>aki-ba3adfd3</kernelId>
+ <ramdiskId>ari-badbad00</ramdiskId>
</item>
</instancesSet>
</item>

0 comments on commit d366ea6

Please sign in to comment.