poolparty 1.6.6 → 1.6.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/VERSION.yml +2 -3
  2. data/lib/poolparty/chef_solo.rb +0 -1
  3. metadata +12 -69
  4. data/vendor/gems/amazon-ec2/ChangeLog +0 -304
  5. data/vendor/gems/amazon-ec2/LICENSE +0 -66
  6. data/vendor/gems/amazon-ec2/README.rdoc +0 -359
  7. data/vendor/gems/amazon-ec2/README_dev.rdoc +0 -10
  8. data/vendor/gems/amazon-ec2/Rakefile +0 -70
  9. data/vendor/gems/amazon-ec2/VERSION +0 -1
  10. data/vendor/gems/amazon-ec2/amazon-ec2.gemspec +0 -142
  11. data/vendor/gems/amazon-ec2/bin/ec2-gem-example.rb +0 -137
  12. data/vendor/gems/amazon-ec2/bin/ec2-gem-profile.rb +0 -10
  13. data/vendor/gems/amazon-ec2/bin/ec2sh +0 -62
  14. data/vendor/gems/amazon-ec2/bin/setup.rb +0 -29
  15. data/vendor/gems/amazon-ec2/deps.rip +0 -1
  16. data/vendor/gems/amazon-ec2/lib/AWS/Autoscaling/autoscaling.rb +0 -273
  17. data/vendor/gems/amazon-ec2/lib/AWS/Autoscaling.rb +0 -70
  18. data/vendor/gems/amazon-ec2/lib/AWS/Cloudwatch/monitoring.rb +0 -80
  19. data/vendor/gems/amazon-ec2/lib/AWS/Cloudwatch.rb +0 -32
  20. data/vendor/gems/amazon-ec2/lib/AWS/EC2/availability_zones.rb +0 -29
  21. data/vendor/gems/amazon-ec2/lib/AWS/EC2/console.rb +0 -25
  22. data/vendor/gems/amazon-ec2/lib/AWS/EC2/devpay.rb +0 -18
  23. data/vendor/gems/amazon-ec2/lib/AWS/EC2/elastic_ips.rb +0 -86
  24. data/vendor/gems/amazon-ec2/lib/AWS/EC2/image_attributes.rb +0 -133
  25. data/vendor/gems/amazon-ec2/lib/AWS/EC2/images.rb +0 -117
  26. data/vendor/gems/amazon-ec2/lib/AWS/EC2/instances.rb +0 -249
  27. data/vendor/gems/amazon-ec2/lib/AWS/EC2/keypairs.rb +0 -47
  28. data/vendor/gems/amazon-ec2/lib/AWS/EC2/products.rb +0 -21
  29. data/vendor/gems/amazon-ec2/lib/AWS/EC2/security_groups.rb +0 -164
  30. data/vendor/gems/amazon-ec2/lib/AWS/EC2/snapshots.rb +0 -80
  31. data/vendor/gems/amazon-ec2/lib/AWS/EC2/volumes.rb +0 -100
  32. data/vendor/gems/amazon-ec2/lib/AWS/EC2.rb +0 -33
  33. data/vendor/gems/amazon-ec2/lib/AWS/ELB/load_balancers.rb +0 -178
  34. data/vendor/gems/amazon-ec2/lib/AWS/ELB.rb +0 -71
  35. data/vendor/gems/amazon-ec2/lib/AWS/RDS/rds.rb +0 -522
  36. data/vendor/gems/amazon-ec2/lib/AWS/RDS.rb +0 -73
  37. data/vendor/gems/amazon-ec2/lib/AWS/exceptions.rb +0 -200
  38. data/vendor/gems/amazon-ec2/lib/AWS/responses.rb +0 -21
  39. data/vendor/gems/amazon-ec2/lib/AWS.rb +0 -304
  40. data/vendor/gems/amazon-ec2/perftools/ec2prof +0 -0
  41. data/vendor/gems/amazon-ec2/perftools/ec2prof-results.dot +0 -132
  42. data/vendor/gems/amazon-ec2/perftools/ec2prof-results.txt +0 -100
  43. data/vendor/gems/amazon-ec2/perftools/ec2prof.symbols +0 -102
  44. data/vendor/gems/amazon-ec2/test/test_Autoscaling_groups.rb +0 -337
  45. data/vendor/gems/amazon-ec2/test/test_EC2.rb +0 -68
  46. data/vendor/gems/amazon-ec2/test/test_EC2_availability_zones.rb +0 -49
  47. data/vendor/gems/amazon-ec2/test/test_EC2_console.rb +0 -54
  48. data/vendor/gems/amazon-ec2/test/test_EC2_elastic_ips.rb +0 -144
  49. data/vendor/gems/amazon-ec2/test/test_EC2_image_attributes.rb +0 -238
  50. data/vendor/gems/amazon-ec2/test/test_EC2_images.rb +0 -229
  51. data/vendor/gems/amazon-ec2/test/test_EC2_instances.rb +0 -611
  52. data/vendor/gems/amazon-ec2/test/test_EC2_keypairs.rb +0 -123
  53. data/vendor/gems/amazon-ec2/test/test_EC2_products.rb +0 -48
  54. data/vendor/gems/amazon-ec2/test/test_EC2_responses.rb +0 -53
  55. data/vendor/gems/amazon-ec2/test/test_EC2_s3_xmlsimple.rb +0 -80
  56. data/vendor/gems/amazon-ec2/test/test_EC2_security_groups.rb +0 -205
  57. data/vendor/gems/amazon-ec2/test/test_EC2_snapshots.rb +0 -83
  58. data/vendor/gems/amazon-ec2/test/test_EC2_volumes.rb +0 -142
  59. data/vendor/gems/amazon-ec2/test/test_ELB_load_balancers.rb +0 -239
  60. data/vendor/gems/amazon-ec2/test/test_RDS.rb +0 -354
  61. data/vendor/gems/amazon-ec2/test/test_helper.rb +0 -23
  62. data/vendor/gems/amazon-ec2/wsdl/2007-08-29.ec2.wsdl +0 -1269
  63. data/vendor/gems/amazon-ec2/wsdl/2008-02-01.ec2.wsdl +0 -1614
  64. data/vendor/gems/amazon-ec2/wsdl/2008-05-05.ec2.wsdl +0 -2052
  65. data/vendor/gems/amazon-ec2/wsdl/2008-12-01.ec2.wsdl +0 -2354
  66. data/vendor/gems/amazon-ec2/wsdl/2009-10-31.ec2.wsdl +0 -4261
  67. data/vendor/gems/amazon-ec2/wsdl/2009-11-30.ec2.wsdl +0 -4668
@@ -1,359 +0,0 @@
1
- = Amazon Web Services Elastic Compute Cloud (EC2) Ruby Gem
2
-
3
- == About amazon-ec2
4
-
5
- Amazon Web Services offers a compute power on demand capability known as the Elastic Compute Cloud (EC2). The server resources in the cloud can be provisioned on demand by making HTTP Query API calls to EC2.
6
-
7
- This 'amazon-ec2' Ruby Gem is an interface library that can be used to interact with the Amazon EC2 system and control server resources on demand from your Ruby scripts, or from applications written in your Ruby framework of choice (Ruby on Rails, Merb, etc.).
8
-
9
- More recently, support has been added for the following EC2 related AWS API's as well:
10
-
11
- * Autoscaling
12
- * Cloudwatch
13
- * Elastic Load Balancing (ELB)
14
- * Relational Database Service (RDS)
15
-
16
- For the most complete and up-to date README information please visit the project homepage at:
17
-
18
- http://github.com/grempe/amazon-ec2/tree/master
19
-
20
- or the official EC2 website at http://aws.amazon.com/ec2
21
-
22
-
23
- == Installation
24
-
25
- This gem follows the standard conventions for installation on any system with Ruby and RubyGems installed. If you have worked with gems before this will look very familiar.
26
-
27
- === Get an AWS account
28
-
29
- Before you can make use of this gem you will need an Amazon Web Services developer account which you can sign up for at https://aws-portal.amazon.com/gp/aws/developer/registration/index.html. This account must also be specifically enabled for Amazon EC2 usage. AWS will provide you with an 'AWS Access Key ID' and a 'Secret Access Key' which will allow you to authenticate any API calls you make and ensure correct billing to you for usage of the service. Take note of these (and keep them secret!).
30
-
31
- === Install required gem pre-requisites
32
-
33
- The following gems should be installed automatically as part of your install of amazon-ec2. Most of them are needed for testing build dependencies but they should be painless to install even if you don't plan on running the tests or building this gem manually on your own.
34
-
35
- XmlSimple (required)
36
- Mocha (optional for testing)
37
- Rcov (optional for testing)
38
- Test-Spec (optional for testing)
39
-
40
-
41
- === Install the amazon-ec2 gem (Canonical Release)
42
-
43
- This is the standard install for stable releases from Gemcutter.
44
-
45
- # Install the stable release gem from Gemcutter (one time only) ( learn more here : http://gemcutter.org/pages/faq )
46
- sudo gem install gemcutter
47
-
48
- # Set Gemcutter to be your canonical gems source (one time only)
49
- sudo gem tumble
50
-
51
- # Install the gem
52
- sudo gem install amazon-ec2
53
-
54
- # OR if you want to skip the Gemcutter setup
55
- sudo gem install amazon-ec2 -s http://gemcutter.org
56
-
57
-
58
- === Install from local Git clone (for amazon-ec2 developers)
59
-
60
- GitHub has unfortunately given up on the feature they had where they would build gems
61
- when pushed to git. Too bad. So to install from git, you'll need to clone and build.
62
-
63
- git clone git://github.com/grempe/amazon-ec2.git
64
- cd amazon-ec2
65
- rake gemspec
66
- rake build
67
- rake install
68
-
69
-
70
- === EXPERIMENTAL : Install the amazon-ec2 gem using Rip (for more bleeding edge versions)
71
-
72
- For those who intend to do development on the gem, or want the bleeding edge. Install Rip as described at hellorip.com.
73
-
74
- # (Experimental) Install using Rip (hellorip.com) instead of RubyGems
75
- rip install git://github.com/grempe/amazon-ec2.git
76
-
77
-
78
- == Using amazon-ec2
79
-
80
- The library exposes one main interface class AWS::EC2::Base. It is through an instance of this class that you will perform all the operations for using the EC2 service including query string header signing.
81
-
82
- The public methods on AWS::EC2::Base closely mirror the EC2 Query API, and as such the Query API Reference in the EC2 Developer Guide ( http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=84 ) will prove helpful.
83
-
84
-
85
- === Setting up
86
-
87
- The 'ec2sh' and 'ec2-gem-example.rb' scripts which will be introduced to you shortly expect your AWS EC2 credentials to be stored as shell environment variables which are accessible to those scripts. This makes them convenient to use whenever you need to do a quick query to see what images you have available to you, what's running now, or to start or stop an instance on EC2. You'll find 'ec2sh' to be a very handy tool. I'll describe only the OS X route for setting up (of course the setup steps will vary depending on your particular system and preferred shell). If you don't want to do it this way, feel free to copy these scripts from the gem dir to any location where you can run them from and modify them directly to include your credentials.
88
-
89
- Edit the file ~/.bash_login and add the following to the existing contents:
90
-
91
- # OPTIONAL : Why 'export RUBYOPT'? Because we leave loading libs up to you... See : http://gist.github.com/54177
92
- export RUBYOPT="rubygems"
93
-
94
- # For amazon-ec2 and amazon s3 ruby gems
95
- export AMAZON_ACCESS_KEY_ID="YOUR_ACCESS_KEY_ID"
96
- export AMAZON_SECRET_ACCESS_KEY="YOUR_SECRET_ACCESS_KEY_ID"
97
-
98
- If you are using EC2 in the EU region, make sure you also set:
99
-
100
- export EC2_URL="https://eu-west-1.ec2.amazonaws.com"
101
-
102
- (which you have already if you configured standard EC2 command line tools to work with this region).
103
-
104
- Once you save the file you should close and re-open your terminal so the new variables are made available. You'll need to do this close/re-open step for each terminal window you have open (or issue the 'source ~/.bash_login' command in each). Make sure that this file is only readable by your user so you don't inadvertently expose your credentials to other users on your system.
105
-
106
- You can verify that this setup is complete by running the 'set' in a command window and seeing that your credentials are in the list of shell variables.
107
-
108
- === The basics
109
-
110
- The library exposes one main interface module
111
-
112
- AWS::EC2::Base
113
-
114
- This method requires arguments which include your AWS credentials and it will return an object that you can use to make method calls directly against EC2. All the operations for using the EC2 service, including query string header signing, are handled automatically for you. The connection string will look something like this:
115
-
116
- @ec2 = AWS::EC2::Base.new(:access_key_id => ACCESS_KEY_ID, :secret_access_key => SECRET_ACCESS_KEY)
117
-
118
- I've tried to keep the public methods on 'amazon-ec2' as close as possible to the AWS EC2 Query API. This similarity allows you to reference the Query API Reference in the EC2 Developer Guide and be able to get started right away. In most cases the methods names only differ in how they are presented. e.g. 'DescribeImages' becomes '#describe_images()' in Ruby. Feel free to browse the full RDoc documentation for all classes and methods of 'amazon-ec2' if you want more details.
119
-
120
-
121
- === Examples
122
-
123
- The best way to become familiar with 'amazon-ec2' is to take it for a test drive. We have provided a few simple ways to get you started. There is also some sample code below that should help out in using 'amazon-ec2' with a plain Ruby script, or as part of a Ruby on Rails application.
124
-
125
- ==== Using the 'ec2-gem-example.rb' sample test script
126
-
127
- An example Ruby script which exercises the library a bit more is installed for you to check out when you install this gem. You can run this script to verify that everything is setup and working correctly in your environment. Consult the file which is installed at :
128
-
129
- [your amazon-ec2 gem dir]/examples/ec2-example.rb
130
-
131
- Since we also package this sample file in the gem's bin/ dir you should also be able to run it from anywhere on your shell path (once you have set your environment variables as described above).
132
-
133
- ==== Using the 'ec2sh' command shell
134
-
135
- The 'ec2sh' command shell is actually a standard 'irb' Ruby shell, with the main difference being we read your AWS credentials from your environment and pre-configure a connection string for you. This lets you run any EC2 command very simply. This has proven to be a valuable tool during the development of this gem and you should try it out. Since we install this tool in your system path as part of the installation of this gem, you should be able to simply run 'ec2sh' from any terminal command prompt on your local system. You'll see some basic instructions for use, and a few examples when you start 'ec2sh'. Go ahead and try it out now. We'll wait...
136
-
137
- If you're not in front of a terminal shell now (perhaps you're browsing this site on your iPhone) this is what you would see:
138
-
139
-
140
- hostname:/tmp/rails/amazon_test glenn$ ec2sh
141
-
142
- 'ec2sh' usage :
143
- This is an interactive 'irb' command shell that allows you to use all
144
- commands available to the amazon-ec2 gem. You'll find this to be a
145
- great tool to help you debug issues and practice running commands
146
- against the live EC2 servers prior to putting them in your code.
147
-
148
- The EC2 connection is wired to the class instance '@ec2'. Make method calls
149
- on this to execute commands on EC2. Adding a #to_s
150
- at the end of any command should give you a full String representation of the
151
- response. The #xml data is available for each response
152
- which allows you to view the full and complete XML response returned by
153
- EC2 without any parsing applied. This is useful for viewing the
154
- hierarchy of an entire response in a friendly way (if XML is friendly
155
- to you!). Understanding the hierarchy of the XML response is critical
156
- to making effective use of this library.
157
-
158
- Examples to try:
159
-
160
- returns : all ec2 public methods
161
- >> @ec2.methods.sort
162
-
163
- returns : a string representation of ALL images
164
- >> @ec2.describe_images.to_s
165
-
166
- returns : an Array of AWS::Response objects, each an EC2 image and its data
167
- >> @ec2.describe_images.imagesSet.item
168
- >> @ec2.describe_images.imagesSet.item[0] (a hash representing a single item in that array)
169
- >> @ec2.describe_images.imagesSet.item[0].to_s (a String representation of that item)
170
-
171
- >> @ec2.describe_images.imagesSet.item[0].to_s
172
- => "#<AWS::Response:0x100A465B4 imageId=\"ami-018e6b68\" imageLocation=\"rbuilder-online/phonehome-1.5.6-x86_10132.img.manifest.xml\" imageOwnerId=\"099034111737\" imageState=\"available\" isPublic=\"true\" parent=#<AWS::Response:0x100A469A6 ...>>"
173
-
174
-
175
- === Ruby script usage example:
176
-
177
- Try out the following bit of code. This should walk through each image returned by a call to #describe_images and print out its key data. Note in the example below that you cannot walk through the results of the #describe_images call with the '.each' iterator (You'll get errors if you try). You need to instead walk through the Array of items which are in the 'imagesSet' embedded in the response. This reflects exactly the XML hierarchy of data returned from EC2 which we parse to Ruby OpenStruct objects (AWS::Response).
178
-
179
- #!/usr/bin/env ruby
180
-
181
- require 'rubygems'
182
- require 'AWS'
183
-
184
- ACCESS_KEY_ID = '--YOUR AWS ACCESS KEY ID--'
185
- SECRET_ACCESS_KEY = '--YOUR AWS SECRET ACCESS KEY--'
186
-
187
- ec2 = AWS::EC2::Base.new(:access_key_id => ACCESS_KEY_ID, :secret_access_key => SECRET_ACCESS_KEY)
188
-
189
- puts "----- listing images owned by 'amazon' -----"
190
- ec2.describe_images(:owner_id => "amazon").imagesSet.item.each do |image|
191
- # OpenStruct objects have members!
192
- image.members.each do |member|
193
- puts "#{member} => #{image[member]}"
194
- end
195
- end
196
-
197
- === Ruby on Rails usage example:
198
-
199
- <b>config/environment.rb</b>
200
-
201
- Rails::Initializer.run do |config|
202
- ...
203
- config.gem "amazon-ec2", :lib => "AWS", :source => "http://gemcutter.org/"
204
- ...
205
- end
206
-
207
-
208
- <b>app/controllers/my_controller.rb</b>
209
-
210
- [some controller code ...]
211
-
212
- ec2 = AWS::EC2::Base.new(:access_key_id => "YOUR_AWS_ACCESS_KEY_ID", :secret_access_key => "YOUR_AWS_SECRET_ACCESS_KEY")
213
-
214
- # get ALL public images
215
- @ec2_images = ec2.describe_images().imagesSet.item
216
-
217
- # Get info on all public EC2 images created by the Amazon EC2 team.
218
- @ec2_images_amazon = ec2.describe_images(:owner_id => "amazon").imagesSet.item
219
-
220
- [some more controller code ...]
221
-
222
-
223
- <b>app/views/my/index.rhtml</b>
224
-
225
- <h1>EC2 Test#index</h1>
226
-
227
- <h1>Sample 1 - debug() view</h1>
228
-
229
- <%= debug(@ec2_images_amazon) %>
230
-
231
- <h1>Sample 2 - Build a table</h1>
232
-
233
- <table border='1'>
234
- <tr>
235
- <th>image.imageId</th>
236
- <th>image.imageLocation</th>
237
- <th>image.imageOwnerId</th>
238
- <th>image.imageState</th>
239
- <th>image.isPublic</th>
240
- </tr>
241
-
242
- <% for image in @ec2_images_amazon %>
243
- <tr>
244
- <td><%=h image.imageId %></td>
245
- <td><%=h image.imageLocation %></td>
246
- <td><%=h image.imageOwnerId %></td>
247
- <td><%=h image.imageState %></td>
248
- <td><%=h image.isPublic %></td>
249
- </tr>
250
- <% end %>
251
- </table>
252
-
253
- <h1>Sample 3 - Iterate</h1>
254
-
255
- <% @ec2_images_amazon.each do |image| %>
256
- <% image.each_pair do |key, value| %>
257
- <% unless key == 'parent' %>
258
- <%= "#{key} => #{value}" %><br />
259
- <% end %>
260
- <% end %>
261
- <br />
262
- <% end %>
263
-
264
-
265
- === Important notes regarding the structure of AWS::Response Objects
266
-
267
- One of the key benefits of this new version of the library is that all responses from EC2 are bundled up in a real data structure and no longer require parsing of text. The hash returned is populated directly from the XML given to us by EC2 in response to any command we issue. This means that future changes to the API and what is returned by EC2 will be handled transparently by the gem. This is a huge benefit. What this means though, is that you may have to do a little homework on what actually gets returned by EC2 as XML. For example, when you make a #describe_images call in 'ec2sh' what AWS returns behind the scenes looks like:
268
-
269
- <?xml version="1.0"?>
270
- <DescribeImagesResponse xmlns="http://ec2.amazonaws.com/doc/2007-01-19/">
271
- <imagesSet>
272
- <item>
273
- <imageId>ami-20b65349</imageId>
274
- <imageLocation>ec2-public-images/fedora-core4-base.manifest.xml</imageLocation>
275
- <imageState>available</imageState>
276
- <imageOwnerId>amazon</imageOwnerId>
277
- <isPublic>true</isPublic>
278
- </item>
279
- <item>
280
- <imageId>ami-22b6534b</imageId>
281
- <imageLocation>ec2-public-images/fedora-core4-mysql.manifest.xml</imageLocation>
282
- <imageState>available</imageState>
283
- <imageOwnerId>amazon</imageOwnerId>
284
- <isPublic>true</isPublic>
285
- </item>
286
- <item>
287
- <imageId>ami-23b6534a</imageId>
288
- <imageLocation>ec2-public-images/fedora-core4-apache.manifest.xml</imageLocation>
289
- <imageState>available</imageState>
290
- <imageOwnerId>amazon</imageOwnerId>
291
- <isPublic>true</isPublic>
292
- </item>
293
- <item>
294
- <imageId>ami-25b6534c</imageId>
295
- <imageLocation>ec2-public-images/fedora-core4-apache-mysql.manifest.xml</imageLocation>
296
- <imageState>available</imageState>
297
- <imageOwnerId>amazon</imageOwnerId>
298
- <isPublic>true</isPublic>
299
- </item>
300
- <item>
301
- <imageId>ami-26b6534f</imageId>
302
- <imageLocation>ec2-public-images/developer-image.manifest.xml</imageLocation>
303
- <imageState>available</imageState>
304
- <imageOwnerId>amazon</imageOwnerId>
305
- <isPublic>true</isPublic>
306
- </item>
307
- <item>
308
- <imageId>ami-2bb65342</imageId>
309
- <imageLocation>ec2-public-images/getting-started.manifest.xml</imageLocation>
310
- <imageState>available</imageState>
311
- <imageOwnerId>amazon</imageOwnerId>
312
- <isPublic>true</isPublic>
313
- </item>
314
- </imagesSet>
315
- </DescribeImagesResponse>
316
-
317
- You can see here the XML the structure that you will need to follow when constructing queries for information and parsing responses from EC2.
318
-
319
- So, for example, if you wanted to get the image ID of the third image listed in the response above you would need to do:
320
-
321
- >> puts @ec2.describe_images(:owner_id => 'amazon').imagesSet.item[2].imageId
322
- ami-23b6534a
323
-
324
- EC2 will typically return sets of things (imagesSet, reservationSet, etc.) which we map to ruby Arrays (.imagesSet.item in the example above). If you want to iterate over a response set you will need to iterate over this array. The Arrays will typically contain additional AWS::Response objects that represent each individual item. You'll find that you can use the 'ec2sh' to help you understand the structure more completely if you try issuing commands there as a way to practice seeing what will be returned and making sure you get exactly what you want.
325
-
326
- === Handling Exceptions
327
- If for some reason an error occurs when executing a method (e.g. its arguments were
328
- incorrect, or it simply failed) then an exception will be thrown. The exceptions are
329
- defined in exceptions.rb as individual classes and should match the exceptions that
330
- AWS has defined in the API. If the exception raised cannot be identified then a
331
- more generic exception class will be thrown.
332
-
333
- The implication of this is that you need to be prepared to handle any exceptions that
334
- may be raised by this library in YOUR code with a 'rescue' clause. It is up to you
335
- to determine how you want to handle these exceptions in your code.
336
-
337
-
338
- == Additional Resources
339
-
340
- === Project Websites
341
-
342
- * Project Home : http://github.com/grempe/amazon-ec2/tree/master
343
- * API Documentation : http://rdoc.info/projects/grempe/amazon-ec2
344
- * Discussion Group : http://groups.google.com/group/amazon-ec2
345
- * Report Bugs / Request Features : http://github.com/grempe/amazon-ec2/issues
346
- * Amazon Web Services : http://aws.amazon.com
347
-
348
- == Credits
349
-
350
- The original code for this library was provided by Amazon Web Services, LLC as sample code. Thanks to them for providing all of us with something to get us started.
351
-
352
- == Contact
353
-
354
- Comments, patches, Git pull requests and bug reports are welcome. Send an email to mailto:glenn@rempe.us or join the Google Groups forum.
355
-
356
- Enjoy!
357
-
358
- Glenn Rempe
359
-
@@ -1,10 +0,0 @@
1
- = Dev Docs
2
-
3
- Publishing the gem using Jeweler:
4
-
5
- rake version:bump:patch release
6
-
7
- Push the gem to gemcutter:
8
-
9
- gem push pkg/amazon-ec2-X.Y.Z.gem
10
-
@@ -1,70 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'yard'
4
-
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "amazon-ec2"
8
- gem.summary = %Q{Amazon EC2 Ruby Gem}
9
- gem.description = %Q{A Ruby library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling API's.}
10
- gem.email = "glenn@rempe.us"
11
- gem.homepage = "http://github.com/grempe/amazon-ec2"
12
- gem.authors = ["Glenn Rempe"]
13
- gem.rdoc_options = ["--title", "amazon-ec2 documentation", "--line-numbers", "--main", "README.rdoc"]
14
- gem.rubyforge_project = 'amazon-ec2'
15
- gem.add_dependency('xml-simple', '>= 1.0.12')
16
- gem.add_development_dependency('mocha', '>= 0.9.8')
17
- gem.add_development_dependency('test-spec', '>= 0.10.0')
18
- gem.add_development_dependency('rcov', '>= 0.9.6')
19
- gem.add_development_dependency('perftools.rb', '>= 0.3.9')
20
- end
21
-
22
- require 'rake/testtask'
23
- Rake::TestTask.new(:test) do |test|
24
- test.libs << 'lib' << 'test'
25
- test.pattern = 'test/**/test_*.rb'
26
- test.verbose = true
27
- end
28
-
29
- begin
30
- require 'rcov/rcovtask'
31
- Rcov::RcovTask.new do |test|
32
- test.libs << 'test'
33
- test.pattern = 'test/**/test_*.rb'
34
- test.verbose = true
35
- test.rcov_opts << "--exclude /gems/,/Library/,spec"
36
- end
37
- rescue LoadError
38
- task :rcov do
39
- abort "RCov is not available. In order to run rcov, you must: [sudo] gem install rcov"
40
- end
41
- end
42
-
43
- task :default => :test
44
-
45
- require 'rake/rdoctask'
46
- Rake::RDocTask.new do |rdoc|
47
- if File.exist?('VERSION.yml')
48
- config = YAML.load(File.read('VERSION.yml'))
49
- version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
50
- else
51
- version = ""
52
- end
53
-
54
- rdoc.rdoc_dir = 'rdoc'
55
- rdoc.title = "amazon-ec2 #{version}"
56
- rdoc.rdoc_files.include('README*')
57
- rdoc.rdoc_files.include('lib/**/*.rb')
58
- end
59
-
60
- YARD::Rake::YardocTask.new do |t|
61
- #t.files = ['lib/**/*.rb']
62
- end
63
-
64
- desc "Generate a perftools.rb profile"
65
- task :profile do
66
- system("CPUPROFILE=perftools/ec2prof RUBYOPT='-r/Library/Ruby/Gems/1.8/gems/perftools.rb-0.3.2/lib/perftools.bundle' ruby -r'rubygems' bin/ec2-gem-profile.rb")
67
- system("pprof.rb --text --ignore=Gem perftools/ec2prof > perftools/ec2prof-results.txt")
68
- system("pprof.rb --dot --ignore=Gem perftools/ec2prof > perftools/ec2prof-results.dot")
69
- end
70
-
@@ -1 +0,0 @@
1
- 0.7.8
@@ -1,142 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{amazon-ec2}
8
- s.version = "0.7.8"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Glenn Rempe"]
12
- s.date = %q{2009-12-21}
13
- s.description = %q{A Ruby library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling API's.}
14
- s.email = %q{glenn@rempe.us}
15
- s.executables = ["ec2-gem-example.rb", "ec2-gem-profile.rb", "ec2sh", "setup.rb"]
16
- s.extra_rdoc_files = [
17
- "ChangeLog",
18
- "LICENSE",
19
- "README.rdoc",
20
- "README_dev.rdoc"
21
- ]
22
- s.files = [
23
- ".gitignore",
24
- ".yardopts",
25
- "ChangeLog",
26
- "LICENSE",
27
- "README.rdoc",
28
- "README_dev.rdoc",
29
- "Rakefile",
30
- "VERSION",
31
- "amazon-ec2.gemspec",
32
- "bin/ec2-gem-example.rb",
33
- "bin/ec2-gem-profile.rb",
34
- "bin/ec2sh",
35
- "bin/setup.rb",
36
- "deps.rip",
37
- "lib/AWS.rb",
38
- "lib/AWS/Autoscaling.rb",
39
- "lib/AWS/Autoscaling/autoscaling.rb",
40
- "lib/AWS/Cloudwatch.rb",
41
- "lib/AWS/Cloudwatch/monitoring.rb",
42
- "lib/AWS/EC2.rb",
43
- "lib/AWS/EC2/availability_zones.rb",
44
- "lib/AWS/EC2/console.rb",
45
- "lib/AWS/EC2/devpay.rb",
46
- "lib/AWS/EC2/elastic_ips.rb",
47
- "lib/AWS/EC2/image_attributes.rb",
48
- "lib/AWS/EC2/images.rb",
49
- "lib/AWS/EC2/instances.rb",
50
- "lib/AWS/EC2/keypairs.rb",
51
- "lib/AWS/EC2/products.rb",
52
- "lib/AWS/EC2/security_groups.rb",
53
- "lib/AWS/EC2/snapshots.rb",
54
- "lib/AWS/EC2/volumes.rb",
55
- "lib/AWS/ELB.rb",
56
- "lib/AWS/ELB/load_balancers.rb",
57
- "lib/AWS/RDS.rb",
58
- "lib/AWS/RDS/rds.rb",
59
- "lib/AWS/exceptions.rb",
60
- "lib/AWS/responses.rb",
61
- "perftools/ec2prof",
62
- "perftools/ec2prof-results.dot",
63
- "perftools/ec2prof-results.txt",
64
- "perftools/ec2prof.symbols",
65
- "test/test_Autoscaling_groups.rb",
66
- "test/test_EC2.rb",
67
- "test/test_EC2_availability_zones.rb",
68
- "test/test_EC2_console.rb",
69
- "test/test_EC2_elastic_ips.rb",
70
- "test/test_EC2_image_attributes.rb",
71
- "test/test_EC2_images.rb",
72
- "test/test_EC2_instances.rb",
73
- "test/test_EC2_keypairs.rb",
74
- "test/test_EC2_products.rb",
75
- "test/test_EC2_responses.rb",
76
- "test/test_EC2_s3_xmlsimple.rb",
77
- "test/test_EC2_security_groups.rb",
78
- "test/test_EC2_snapshots.rb",
79
- "test/test_EC2_volumes.rb",
80
- "test/test_ELB_load_balancers.rb",
81
- "test/test_RDS.rb",
82
- "test/test_helper.rb",
83
- "wsdl/2007-08-29.ec2.wsdl",
84
- "wsdl/2008-02-01.ec2.wsdl",
85
- "wsdl/2008-05-05.ec2.wsdl",
86
- "wsdl/2008-12-01.ec2.wsdl",
87
- "wsdl/2009-10-31.ec2.wsdl",
88
- "wsdl/2009-11-30.ec2.wsdl"
89
- ]
90
- s.homepage = %q{http://github.com/grempe/amazon-ec2}
91
- s.rdoc_options = ["--title", "amazon-ec2 documentation", "--line-numbers", "--main", "README.rdoc"]
92
- s.require_paths = ["lib"]
93
- s.rubyforge_project = %q{amazon-ec2}
94
- s.rubygems_version = %q{1.3.5}
95
- s.summary = %q{Amazon EC2 Ruby Gem}
96
- s.test_files = [
97
- "test/test_Autoscaling_groups.rb",
98
- "test/test_EC2.rb",
99
- "test/test_EC2_availability_zones.rb",
100
- "test/test_EC2_console.rb",
101
- "test/test_EC2_elastic_ips.rb",
102
- "test/test_EC2_image_attributes.rb",
103
- "test/test_EC2_images.rb",
104
- "test/test_EC2_instances.rb",
105
- "test/test_EC2_keypairs.rb",
106
- "test/test_EC2_products.rb",
107
- "test/test_EC2_responses.rb",
108
- "test/test_EC2_s3_xmlsimple.rb",
109
- "test/test_EC2_security_groups.rb",
110
- "test/test_EC2_snapshots.rb",
111
- "test/test_EC2_volumes.rb",
112
- "test/test_ELB_load_balancers.rb",
113
- "test/test_helper.rb",
114
- "test/test_RDS.rb"
115
- ]
116
-
117
- if s.respond_to? :specification_version then
118
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
119
- s.specification_version = 3
120
-
121
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
122
- s.add_runtime_dependency(%q<xml-simple>, [">= 1.0.12"])
123
- s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
124
- s.add_development_dependency(%q<test-spec>, [">= 0.10.0"])
125
- s.add_development_dependency(%q<rcov>, [">= 0.9.6"])
126
- s.add_development_dependency(%q<perftools.rb>, [">= 0.3.9"])
127
- else
128
- s.add_dependency(%q<xml-simple>, [">= 1.0.12"])
129
- s.add_dependency(%q<mocha>, [">= 0.9.8"])
130
- s.add_dependency(%q<test-spec>, [">= 0.10.0"])
131
- s.add_dependency(%q<rcov>, [">= 0.9.6"])
132
- s.add_dependency(%q<perftools.rb>, [">= 0.3.9"])
133
- end
134
- else
135
- s.add_dependency(%q<xml-simple>, [">= 1.0.12"])
136
- s.add_dependency(%q<mocha>, [">= 0.9.8"])
137
- s.add_dependency(%q<test-spec>, [">= 0.10.0"])
138
- s.add_dependency(%q<rcov>, [">= 0.9.6"])
139
- s.add_dependency(%q<perftools.rb>, [">= 0.3.9"])
140
- end
141
- end
142
-