fog 0.0.31 → 0.0.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. data/.document +0 -2
  2. data/Rakefile +12 -7
  3. data/VERSION +1 -1
  4. data/bin/fog +16 -18
  5. data/fog.gemspec +34 -8
  6. data/lib/fog.rb +11 -0
  7. data/lib/fog/aws/models/ec2/address.rb +4 -0
  8. data/lib/fog/aws/models/ec2/instance.rb +17 -0
  9. data/lib/fog/aws/models/ec2/key_pair.rb +4 -0
  10. data/lib/fog/aws/models/ec2/security_group.rb +8 -0
  11. data/lib/fog/aws/models/ec2/snapshot.rb +7 -1
  12. data/lib/fog/aws/models/ec2/volume.rb +9 -1
  13. data/lib/fog/aws/models/s3/bucket.rb +10 -0
  14. data/lib/fog/aws/models/s3/buckets.rb +10 -4
  15. data/lib/fog/aws/models/s3/object.rb +5 -0
  16. data/lib/fog/aws/requests/ec2/allocate_address.rb +1 -1
  17. data/lib/fog/aws/requests/ec2/associate_address.rb +2 -2
  18. data/lib/fog/aws/requests/ec2/attach_volume.rb +2 -2
  19. data/lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb +1 -1
  20. data/lib/fog/aws/requests/ec2/create_key_pair.rb +2 -2
  21. data/lib/fog/aws/requests/ec2/create_security_group.rb +2 -2
  22. data/lib/fog/aws/requests/ec2/create_snapshot.rb +2 -2
  23. data/lib/fog/aws/requests/ec2/create_volume.rb +1 -1
  24. data/lib/fog/aws/requests/ec2/delete_key_pair.rb +1 -1
  25. data/lib/fog/aws/requests/ec2/delete_security_group.rb +2 -2
  26. data/lib/fog/aws/requests/ec2/delete_snapshot.rb +2 -2
  27. data/lib/fog/aws/requests/ec2/delete_volume.rb +2 -2
  28. data/lib/fog/aws/requests/ec2/describe_addresses.rb +2 -2
  29. data/lib/fog/aws/requests/ec2/describe_availability_zones.rb +1 -1
  30. data/lib/fog/aws/requests/ec2/describe_images.rb +1 -1
  31. data/lib/fog/aws/requests/ec2/describe_instances.rb +2 -2
  32. data/lib/fog/aws/requests/ec2/describe_key_pairs.rb +2 -2
  33. data/lib/fog/aws/requests/ec2/describe_regions.rb +1 -1
  34. data/lib/fog/aws/requests/ec2/describe_security_groups.rb +2 -2
  35. data/lib/fog/aws/requests/ec2/describe_snapshots.rb +2 -2
  36. data/lib/fog/aws/requests/ec2/describe_volumes.rb +2 -2
  37. data/lib/fog/aws/requests/ec2/detach_volume.rb +2 -2
  38. data/lib/fog/aws/requests/ec2/disassociate_address.rb +2 -2
  39. data/lib/fog/aws/requests/ec2/get_console_output.rb +2 -2
  40. data/lib/fog/aws/requests/ec2/reboot_instances.rb +2 -2
  41. data/lib/fog/aws/requests/ec2/release_address.rb +2 -2
  42. data/lib/fog/aws/requests/ec2/revoke_security_group_ingress.rb +1 -1
  43. data/lib/fog/aws/requests/ec2/run_instances.rb +1 -1
  44. data/lib/fog/aws/requests/ec2/terminate_instances.rb +2 -2
  45. data/lib/fog/aws/requests/s3/copy_object.rb +2 -2
  46. data/lib/fog/aws/requests/s3/delete_bucket.rb +3 -3
  47. data/lib/fog/aws/requests/s3/delete_object.rb +8 -7
  48. data/lib/fog/aws/requests/s3/get_bucket.rb +2 -2
  49. data/lib/fog/aws/requests/s3/get_bucket_location.rb +2 -2
  50. data/lib/fog/aws/requests/s3/get_object.rb +2 -2
  51. data/lib/fog/aws/requests/s3/get_request_payment.rb +2 -2
  52. data/lib/fog/aws/requests/s3/get_service.rb +1 -1
  53. data/lib/fog/aws/requests/s3/put_bucket.rb +8 -6
  54. data/lib/fog/aws/requests/s3/put_object.rb +9 -9
  55. data/lib/fog/aws/requests/s3/put_request_payment.rb +2 -2
  56. data/lib/fog/aws/requests/simpledb/batch_put_attributes.rb +2 -2
  57. data/lib/fog/aws/requests/simpledb/create_domain.rb +1 -1
  58. data/lib/fog/aws/requests/simpledb/delete_attributes.rb +2 -2
  59. data/lib/fog/aws/requests/simpledb/delete_domain.rb +1 -1
  60. data/lib/fog/aws/requests/simpledb/domain_metadata.rb +2 -2
  61. data/lib/fog/aws/requests/simpledb/get_attributes.rb +2 -2
  62. data/lib/fog/aws/requests/simpledb/list_domains.rb +1 -1
  63. data/lib/fog/aws/s3.rb +1 -12
  64. data/lib/fog/collection.rb +16 -8
  65. data/lib/fog/model.rb +36 -14
  66. data/lib/fog/rackspace/models/servers/image.rb +40 -0
  67. data/lib/fog/rackspace/models/servers/images.rb +50 -0
  68. data/lib/fog/rackspace/models/servers/server.rb +18 -2
  69. data/lib/fog/rackspace/requests/servers/create_image.rb +18 -1
  70. data/lib/fog/rackspace/requests/servers/create_server.rb +5 -5
  71. data/lib/fog/rackspace/requests/servers/delete_image.rb +16 -1
  72. data/lib/fog/rackspace/requests/servers/delete_server.rb +4 -4
  73. data/lib/fog/rackspace/requests/servers/get_server_details.rb +2 -2
  74. data/lib/fog/rackspace/requests/servers/list_addresses.rb +2 -2
  75. data/lib/fog/rackspace/requests/servers/list_images.rb +10 -0
  76. data/lib/fog/rackspace/requests/servers/list_images_detail.rb +16 -1
  77. data/lib/fog/rackspace/requests/servers/list_private_addresses.rb +2 -2
  78. data/lib/fog/rackspace/requests/servers/list_public_addresses.rb +2 -2
  79. data/lib/fog/rackspace/requests/servers/list_servers.rb +1 -1
  80. data/lib/fog/rackspace/requests/servers/list_servers_detail.rb +2 -2
  81. data/lib/fog/rackspace/requests/servers/update_server.rb +2 -2
  82. data/lib/fog/rackspace/servers.rb +8 -2
  83. data/lib/fog/slicehost.rb +66 -0
  84. data/lib/fog/slicehost/parsers/create_slice.rb +29 -0
  85. data/lib/fog/slicehost/parsers/get_backups.rb +30 -0
  86. data/lib/fog/slicehost/parsers/get_flavors.rb +28 -0
  87. data/lib/fog/slicehost/parsers/get_images.rb +28 -0
  88. data/lib/fog/slicehost/parsers/get_slices.rb +33 -0
  89. data/lib/fog/slicehost/requests/create_slice.rb +50 -0
  90. data/lib/fog/slicehost/requests/delete_slice.rb +48 -0
  91. data/lib/fog/slicehost/requests/get_backups.rb +38 -0
  92. data/lib/fog/slicehost/requests/get_flavors.rb +38 -0
  93. data/lib/fog/slicehost/requests/get_images.rb +36 -0
  94. data/lib/fog/slicehost/requests/get_slices.rb +44 -0
  95. data/spec/aws/requests/s3/put_object_spec.rb +8 -0
  96. data/spec/rackspace/requests/servers/create_image_spec.rb +1 -1
  97. data/spec/rackspace/requests/servers/create_server_spec.rb +1 -1
  98. data/spec/rackspace/requests/servers/delete_image_spec.rb +7 -5
  99. data/spec/rackspace/requests/servers/delete_server_spec.rb +1 -1
  100. data/spec/rackspace/requests/servers/get_server_details_spec.rb +1 -1
  101. data/spec/rackspace/requests/servers/list_addresses_spec.rb +1 -1
  102. data/spec/rackspace/requests/servers/list_private_addresses_spec.rb +1 -1
  103. data/spec/rackspace/requests/servers/list_public_addresses_spec.rb +1 -1
  104. data/spec/rackspace/requests/servers/list_servers_detail_spec.rb +1 -1
  105. data/spec/rackspace/requests/servers/list_servers_spec.rb +1 -1
  106. data/spec/rackspace/requests/servers/reboot_server_spec.rb +1 -1
  107. data/spec/rackspace/requests/servers/update_server_spec.rb +1 -1
  108. data/spec/slicehost/requests/create_slice_spec.rb +29 -0
  109. data/spec/slicehost/requests/delete_slice_spec.rb +18 -0
  110. data/spec/slicehost/requests/get_backups_spec.rb +17 -0
  111. data/spec/slicehost/requests/get_flavors_spec.rb +17 -0
  112. data/spec/slicehost/requests/get_images_spec.rb +15 -0
  113. data/spec/slicehost/requests/get_slices_spec.rb +23 -0
  114. data/spec/spec_helper.rb +20 -22
  115. metadata +29 -4
  116. data/lib/fog/aws/models/s3/owner.rb +0 -18
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus (Wesley Beary)
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-16 00:00:00 -08:00
12
+ date: 2009-12-03 00:00:00 -08:00
13
13
  default_executable: fog
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: "0"
23
+ version: 0.0.10
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mime-types
@@ -90,7 +90,6 @@ files:
90
90
  - lib/fog/aws/models/s3/buckets.rb
91
91
  - lib/fog/aws/models/s3/object.rb
92
92
  - lib/fog/aws/models/s3/objects.rb
93
- - lib/fog/aws/models/s3/owner.rb
94
93
  - lib/fog/aws/parsers/ec2/allocate_address.rb
95
94
  - lib/fog/aws/parsers/ec2/attach_volume.rb
96
95
  - lib/fog/aws/parsers/ec2/basic.rb
@@ -180,6 +179,8 @@ files:
180
179
  - lib/fog/rackspace/files.rb
181
180
  - lib/fog/rackspace/models/servers/flavor.rb
182
181
  - lib/fog/rackspace/models/servers/flavors.rb
182
+ - lib/fog/rackspace/models/servers/image.rb
183
+ - lib/fog/rackspace/models/servers/images.rb
183
184
  - lib/fog/rackspace/models/servers/server.rb
184
185
  - lib/fog/rackspace/models/servers/servers.rb
185
186
  - lib/fog/rackspace/requests/files/delete_container.rb
@@ -208,6 +209,18 @@ files:
208
209
  - lib/fog/rackspace/requests/servers/reboot_server.rb
209
210
  - lib/fog/rackspace/requests/servers/update_server.rb
210
211
  - lib/fog/rackspace/servers.rb
212
+ - lib/fog/slicehost.rb
213
+ - lib/fog/slicehost/parsers/create_slice.rb
214
+ - lib/fog/slicehost/parsers/get_backups.rb
215
+ - lib/fog/slicehost/parsers/get_flavors.rb
216
+ - lib/fog/slicehost/parsers/get_images.rb
217
+ - lib/fog/slicehost/parsers/get_slices.rb
218
+ - lib/fog/slicehost/requests/create_slice.rb
219
+ - lib/fog/slicehost/requests/delete_slice.rb
220
+ - lib/fog/slicehost/requests/get_backups.rb
221
+ - lib/fog/slicehost/requests/get_flavors.rb
222
+ - lib/fog/slicehost/requests/get_images.rb
223
+ - lib/fog/slicehost/requests/get_slices.rb
211
224
  - spec/aws/models/ec2/address_spec.rb
212
225
  - spec/aws/models/ec2/addresses_spec.rb
213
226
  - spec/aws/models/ec2/instance_spec.rb
@@ -301,6 +314,12 @@ files:
301
314
  - spec/rackspace/requests/servers/list_servers_spec.rb
302
315
  - spec/rackspace/requests/servers/reboot_server_spec.rb
303
316
  - spec/rackspace/requests/servers/update_server_spec.rb
317
+ - spec/slicehost/requests/create_slice_spec.rb
318
+ - spec/slicehost/requests/delete_slice_spec.rb
319
+ - spec/slicehost/requests/get_backups_spec.rb
320
+ - spec/slicehost/requests/get_flavors_spec.rb
321
+ - spec/slicehost/requests/get_images_spec.rb
322
+ - spec/slicehost/requests/get_slices_spec.rb
304
323
  - spec/spec.opts
305
324
  - spec/spec_helper.rb
306
325
  has_rdoc: true
@@ -424,4 +443,10 @@ test_files:
424
443
  - spec/rackspace/requests/servers/list_servers_spec.rb
425
444
  - spec/rackspace/requests/servers/reboot_server_spec.rb
426
445
  - spec/rackspace/requests/servers/update_server_spec.rb
446
+ - spec/slicehost/requests/create_slice_spec.rb
447
+ - spec/slicehost/requests/delete_slice_spec.rb
448
+ - spec/slicehost/requests/get_backups_spec.rb
449
+ - spec/slicehost/requests/get_flavors_spec.rb
450
+ - spec/slicehost/requests/get_images_spec.rb
451
+ - spec/slicehost/requests/get_slices_spec.rb
427
452
  - spec/spec_helper.rb
@@ -1,18 +0,0 @@
1
- module Fog
2
- module AWS
3
- class S3
4
-
5
- class Owner < Fog::Model
6
-
7
- attribute :display_name, 'DisplayName'
8
- attribute :id, 'ID'
9
-
10
- def initialize(attributes = {})
11
- super
12
- end
13
-
14
- end
15
-
16
- end
17
- end
18
- end