fog 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (582) hide show
  1. data/Gemfile.lock +4 -4
  2. data/README.rdoc +2 -2
  3. data/bin/fog +1 -1
  4. data/fog.gemspec +4 -4
  5. data/lib/fog.rb +7 -12
  6. data/lib/fog/{core/bin.rb → bin.rb} +15 -13
  7. data/lib/fog/{aws/bin.rb → bin/aws.rb} +19 -6
  8. data/lib/fog/{bluebox/bin.rb → bin/bluebox.rb} +7 -2
  9. data/lib/fog/{brightbox/bin.rb → bin/brightbox.rb} +6 -1
  10. data/lib/fog/{go_grid/bin.rb → bin/go_grid.rb} +7 -2
  11. data/lib/fog/{google/bin.rb → bin/google.rb} +6 -1
  12. data/lib/fog/{linode/bin.rb → bin/linode.rb} +9 -2
  13. data/lib/fog/{local/bin.rb → bin/local.rb} +7 -2
  14. data/lib/fog/{new_servers/bin.rb → bin/new_servers.rb} +8 -3
  15. data/lib/fog/{rackspace/bin.rb → bin/rackspace.rb} +11 -4
  16. data/lib/fog/{slicehost/bin.rb → bin/slicehost.rb} +8 -1
  17. data/lib/fog/{terremark/bin.rb → bin/terremark.rb} +0 -0
  18. data/lib/fog/bin/terremark_ecloud.rb +28 -0
  19. data/lib/fog/{vcloud/bin.rb → bin/vcloud.rb} +0 -0
  20. data/lib/fog/{zerigo/bin.rb → bin/zerigo.rb} +6 -1
  21. data/lib/fog/cdn.rb +19 -0
  22. data/lib/fog/{aws/cdn.rb → cdn/aws.rb} +17 -2
  23. data/lib/fog/{aws/parsers/cdn → cdn/parsers/aws}/distribution.rb +0 -0
  24. data/lib/fog/{aws/parsers/cdn → cdn/parsers/aws}/get_distribution_list.rb +0 -0
  25. data/lib/fog/{aws/parsers/cdn → cdn/parsers/aws}/post_invalidation.rb +0 -0
  26. data/lib/fog/{rackspace/cdn.rb → cdn/rackspace.rb} +17 -2
  27. data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/delete_distribution.rb +0 -0
  28. data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/get_distribution.rb +1 -1
  29. data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/get_distribution_list.rb +1 -1
  30. data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/post_distribution.rb +3 -3
  31. data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/post_invalidation.rb +1 -1
  32. data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/put_distribution_config.rb +1 -1
  33. data/lib/fog/{rackspace/requests/cdn → cdn/requests/rackspace}/get_containers.rb +0 -0
  34. data/lib/fog/{rackspace/requests/cdn → cdn/requests/rackspace}/head_container.rb +0 -0
  35. data/lib/fog/{rackspace/requests/cdn → cdn/requests/rackspace}/put_container.rb +0 -0
  36. data/lib/fog/{core/compute.rb → compute.rb} +13 -10
  37. data/lib/fog/{aws/compute.rb → compute/aws.rb} +34 -3
  38. data/lib/fog/{bluebox/compute.rb → compute/bluebox.rb} +18 -3
  39. data/lib/fog/{brightbox/compute.rb → compute/brightbox.rb} +34 -19
  40. data/lib/fog/{go_grid/compute.rb → compute/go_grid.rb} +17 -2
  41. data/lib/fog/{linode/compute.rb → compute/linode.rb} +17 -2
  42. data/lib/fog/{aws/models/compute → compute/models/aws}/address.rb +0 -0
  43. data/lib/fog/{aws/models/compute → compute/models/aws}/addresses.rb +1 -1
  44. data/lib/fog/{aws/models/compute → compute/models/aws}/flavor.rb +0 -0
  45. data/lib/fog/{aws/models/compute → compute/models/aws}/flavors.rb +1 -1
  46. data/lib/fog/{aws/models/compute → compute/models/aws}/image.rb +0 -0
  47. data/lib/fog/{aws/models/compute → compute/models/aws}/images.rb +1 -1
  48. data/lib/fog/{aws/models/compute → compute/models/aws}/key_pair.rb +0 -0
  49. data/lib/fog/{aws/models/compute → compute/models/aws}/key_pairs.rb +1 -1
  50. data/lib/fog/{aws/models/compute → compute/models/aws}/security_group.rb +0 -0
  51. data/lib/fog/{aws/models/compute → compute/models/aws}/security_groups.rb +1 -1
  52. data/lib/fog/{aws/models/compute → compute/models/aws}/server.rb +0 -0
  53. data/lib/fog/{aws/models/compute → compute/models/aws}/servers.rb +1 -1
  54. data/lib/fog/{aws/models/compute → compute/models/aws}/snapshot.rb +0 -0
  55. data/lib/fog/{aws/models/compute → compute/models/aws}/snapshots.rb +1 -1
  56. data/lib/fog/{aws/models/compute → compute/models/aws}/tag.rb +0 -0
  57. data/lib/fog/{aws/models/compute → compute/models/aws}/tags.rb +1 -1
  58. data/lib/fog/{aws/models/compute → compute/models/aws}/volume.rb +0 -0
  59. data/lib/fog/{aws/models/compute → compute/models/aws}/volumes.rb +1 -1
  60. data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/flavor.rb +0 -0
  61. data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/flavors.rb +1 -1
  62. data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/image.rb +0 -0
  63. data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/images.rb +1 -1
  64. data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/server.rb +0 -0
  65. data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/servers.rb +1 -1
  66. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/account.rb +0 -0
  67. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/cloud_ip.rb +0 -0
  68. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/cloud_ips.rb +1 -1
  69. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/flavor.rb +0 -0
  70. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/flavors.rb +1 -1
  71. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/image.rb +0 -0
  72. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/images.rb +1 -1
  73. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/load_balancer.rb +0 -0
  74. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/load_balancers.rb +1 -1
  75. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/server.rb +0 -0
  76. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/servers.rb +1 -1
  77. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/user.rb +0 -0
  78. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/users.rb +1 -1
  79. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/zone.rb +0 -0
  80. data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/zones.rb +1 -1
  81. data/lib/fog/{go_grid/models/compute → compute/models/go_grid}/image.rb +0 -0
  82. data/lib/fog/{go_grid/models/compute → compute/models/go_grid}/images.rb +0 -0
  83. data/lib/fog/{go_grid/models/compute → compute/models/go_grid}/server.rb +0 -0
  84. data/lib/fog/{go_grid/models/compute → compute/models/go_grid}/servers.rb +0 -0
  85. data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/flavor.rb +0 -0
  86. data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/flavors.rb +1 -1
  87. data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/image.rb +0 -0
  88. data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/images.rb +1 -1
  89. data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/server.rb +0 -0
  90. data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/servers.rb +1 -1
  91. data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/flavor.rb +0 -0
  92. data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/flavors.rb +1 -1
  93. data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/image.rb +0 -0
  94. data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/images.rb +1 -1
  95. data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/server.rb +0 -0
  96. data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/servers.rb +1 -1
  97. data/lib/fog/{new_servers/compute.rb → compute/new_servers.rb} +17 -2
  98. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/allocate_address.rb +0 -0
  99. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/attach_volume.rb +0 -0
  100. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/basic.rb +0 -0
  101. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/create_image.rb +0 -0
  102. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/create_key_pair.rb +0 -0
  103. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/create_snapshot.rb +0 -0
  104. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/create_volume.rb +0 -0
  105. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/deregister_image.rb +0 -0
  106. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_addresses.rb +0 -0
  107. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_availability_zones.rb +0 -0
  108. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_images.rb +0 -0
  109. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_instances.rb +0 -0
  110. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_key_pairs.rb +0 -0
  111. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_regions.rb +0 -0
  112. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_reserved_instances.rb +0 -0
  113. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_security_groups.rb +0 -0
  114. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_snapshots.rb +0 -0
  115. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_tags.rb +0 -0
  116. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_volumes.rb +0 -0
  117. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/detach_volume.rb +0 -0
  118. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/get_console_output.rb +0 -0
  119. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/import_key_pair.rb +0 -0
  120. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/register_image.rb +0 -0
  121. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/run_instances.rb +0 -0
  122. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/start_stop_instances.rb +0 -0
  123. data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/terminate_instances.rb +0 -0
  124. data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/create_slice.rb +0 -0
  125. data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_backups.rb +0 -0
  126. data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_flavor.rb +0 -0
  127. data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_flavors.rb +0 -0
  128. data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_image.rb +0 -0
  129. data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_images.rb +0 -0
  130. data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_slice.rb +0 -0
  131. data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_slices.rb +0 -0
  132. data/lib/fog/compute/parsers/terremark_ecloud/get_catalog.rb +36 -0
  133. data/lib/fog/compute/parsers/terremark_ecloud/get_catalog_item.rb +43 -0
  134. data/lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb +27 -0
  135. data/lib/fog/compute/parsers/terremark_ecloud/get_network.rb +59 -0
  136. data/lib/fog/compute/parsers/terremark_ecloud/get_organization.rb +35 -0
  137. data/lib/fog/compute/parsers/terremark_ecloud/get_vdc.rb +110 -0
  138. data/lib/fog/compute/parsers/terremark_ecloud/get_versions.rb +28 -0
  139. data/lib/fog/compute/parsers/terremark_ecloud/login.rb +27 -0
  140. data/lib/fog/{rackspace/compute.rb → compute/rackspace.rb} +33 -2
  141. data/lib/fog/{aws/requests/compute → compute/requests/aws}/allocate_address.rb +1 -1
  142. data/lib/fog/{aws/requests/compute → compute/requests/aws}/associate_address.rb +0 -0
  143. data/lib/fog/{aws/requests/compute → compute/requests/aws}/attach_volume.rb +1 -1
  144. data/lib/fog/{aws/requests/compute → compute/requests/aws}/authorize_security_group_ingress.rb +0 -0
  145. data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_image.rb +1 -1
  146. data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_key_pair.rb +1 -1
  147. data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_security_group.rb +0 -0
  148. data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_snapshot.rb +1 -1
  149. data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_tags.rb +0 -0
  150. data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_volume.rb +1 -1
  151. data/lib/fog/{aws/requests/compute → compute/requests/aws}/delete_key_pair.rb +0 -0
  152. data/lib/fog/{aws/requests/compute → compute/requests/aws}/delete_security_group.rb +0 -0
  153. data/lib/fog/{aws/requests/compute → compute/requests/aws}/delete_snapshot.rb +0 -0
  154. data/lib/fog/{aws/requests/compute → compute/requests/aws}/delete_tags.rb +0 -0
  155. data/lib/fog/{aws/requests/compute → compute/requests/aws}/delete_volume.rb +0 -0
  156. data/lib/fog/{aws/requests/compute → compute/requests/aws}/deregister_image.rb +1 -1
  157. data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_addresses.rb +1 -1
  158. data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_availability_zones.rb +1 -1
  159. data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_images.rb +1 -1
  160. data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_instances.rb +1 -1
  161. data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_key_pairs.rb +1 -1
  162. data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_regions.rb +1 -1
  163. data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_reserved_instances.rb +1 -1
  164. data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_security_groups.rb +1 -1
  165. data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_snapshots.rb +1 -1
  166. data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_tags.rb +1 -1
  167. data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_volumes.rb +1 -1
  168. data/lib/fog/{aws/requests/compute → compute/requests/aws}/detach_volume.rb +1 -1
  169. data/lib/fog/{aws/requests/compute → compute/requests/aws}/disassociate_address.rb +0 -0
  170. data/lib/fog/{aws/requests/compute → compute/requests/aws}/get_console_output.rb +1 -1
  171. data/lib/fog/{aws/requests/compute → compute/requests/aws}/import_key_pair.rb +1 -1
  172. data/lib/fog/{aws/requests/compute → compute/requests/aws}/modify_image_attributes.rb +0 -0
  173. data/lib/fog/{aws/requests/compute → compute/requests/aws}/modify_snapshot_attribute.rb +0 -0
  174. data/lib/fog/{aws/requests/compute → compute/requests/aws}/reboot_instances.rb +0 -0
  175. data/lib/fog/{aws/requests/compute → compute/requests/aws}/register_image.rb +1 -1
  176. data/lib/fog/{aws/requests/compute → compute/requests/aws}/release_address.rb +0 -0
  177. data/lib/fog/{aws/requests/compute → compute/requests/aws}/revoke_security_group_ingress.rb +0 -0
  178. data/lib/fog/{aws/requests/compute → compute/requests/aws}/run_instances.rb +1 -1
  179. data/lib/fog/{aws/requests/compute → compute/requests/aws}/start_instances.rb +1 -1
  180. data/lib/fog/{aws/requests/compute → compute/requests/aws}/stop_instances.rb +1 -1
  181. data/lib/fog/{aws/requests/compute → compute/requests/aws}/terminate_instances.rb +1 -1
  182. data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/create_block.rb +0 -0
  183. data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/destroy_block.rb +0 -0
  184. data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_block.rb +0 -0
  185. data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_blocks.rb +0 -0
  186. data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_product.rb +0 -0
  187. data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_products.rb +0 -0
  188. data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_template.rb +0 -0
  189. data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_templates.rb +0 -0
  190. data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/reboot_block.rb +0 -0
  191. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/add_nodes_load_balancer.rb +0 -0
  192. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/create_api_client.rb +0 -0
  193. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/create_cloud_ip.rb +0 -0
  194. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/create_image.rb +0 -0
  195. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/create_load_balancer.rb +0 -0
  196. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/create_server.rb +0 -0
  197. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/destroy_api_client.rb +0 -0
  198. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/destroy_cloud_ip.rb +0 -0
  199. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/destroy_image.rb +0 -0
  200. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/destroy_load_balancer.rb +0 -0
  201. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/destroy_server.rb +0 -0
  202. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_account.rb +0 -0
  203. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_api_client.rb +0 -0
  204. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_cloud_ip.rb +0 -0
  205. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_image.rb +0 -0
  206. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_interface.rb +0 -0
  207. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_load_balancer.rb +0 -0
  208. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_server.rb +0 -0
  209. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_server_type.rb +0 -0
  210. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_user.rb +0 -0
  211. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_zone.rb +0 -0
  212. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_api_clients.rb +0 -0
  213. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_cloud_ips.rb +0 -0
  214. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_images.rb +0 -0
  215. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_load_balancers.rb +0 -0
  216. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_server_types.rb +0 -0
  217. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_servers.rb +0 -0
  218. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_users.rb +0 -0
  219. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_zones.rb +0 -0
  220. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/map_cloud_ip.rb +0 -0
  221. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/remove_nodes_load_balancer.rb +0 -0
  222. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/reset_ftp_password_account.rb +0 -0
  223. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/resize_server.rb +0 -0
  224. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/shutdown_server.rb +0 -0
  225. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/snapshot_server.rb +0 -0
  226. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/start_server.rb +0 -0
  227. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/stop_server.rb +0 -0
  228. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/unmap_cloud_ip.rb +0 -0
  229. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_account.rb +0 -0
  230. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_api_client.rb +0 -0
  231. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_image.rb +0 -0
  232. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_load_balancer.rb +0 -0
  233. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_server.rb +0 -0
  234. data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_user.rb +0 -0
  235. data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/common_lookup_list.rb +0 -0
  236. data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_image_get.rb +0 -0
  237. data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_image_list.rb +0 -0
  238. data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_ip_list.rb +0 -0
  239. data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_loadbalancer_list.rb +0 -0
  240. data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_server_add.rb +0 -0
  241. data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_server_delete.rb +0 -0
  242. data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_server_get.rb +0 -0
  243. data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_server_list.rb +0 -0
  244. data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_server_power.rb +0 -0
  245. data/lib/fog/{linode/requests/compute → compute/requests/linode}/avail_datacenters.rb +0 -0
  246. data/lib/fog/{linode/requests/compute → compute/requests/linode}/avail_distributions.rb +0 -0
  247. data/lib/fog/{linode/requests/compute → compute/requests/linode}/avail_kernels.rb +0 -0
  248. data/lib/fog/{linode/requests/compute → compute/requests/linode}/avail_linodeplans.rb +0 -0
  249. data/lib/fog/{linode/requests/compute → compute/requests/linode}/avail_stackscripts.rb +0 -0
  250. data/lib/fog/{linode/requests/compute → compute/requests/linode}/linode_create.rb +0 -0
  251. data/lib/fog/{linode/requests/compute → compute/requests/linode}/linode_delete.rb +0 -0
  252. data/lib/fog/{linode/requests/compute → compute/requests/linode}/linode_list.rb +0 -0
  253. data/lib/fog/{linode/requests/compute → compute/requests/linode}/linode_reboot.rb +0 -0
  254. data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/add_server.rb +0 -0
  255. data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/cancel_server.rb +0 -0
  256. data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/get_server.rb +0 -0
  257. data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/list_images.rb +0 -0
  258. data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/list_plans.rb +0 -0
  259. data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/list_servers.rb +0 -0
  260. data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/reboot_server.rb +0 -0
  261. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/confirm_resized_server.rb +0 -0
  262. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/create_image.rb +0 -0
  263. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/create_server.rb +0 -0
  264. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/delete_image.rb +0 -0
  265. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/delete_server.rb +0 -0
  266. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/get_flavor_details.rb +0 -0
  267. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/get_image_details.rb +0 -0
  268. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/get_server_details.rb +0 -0
  269. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_addresses.rb +0 -0
  270. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_flavors.rb +0 -0
  271. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_flavors_detail.rb +0 -0
  272. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_images.rb +0 -0
  273. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_images_detail.rb +0 -0
  274. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_private_addresses.rb +0 -0
  275. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_public_addresses.rb +0 -0
  276. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_servers.rb +0 -0
  277. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_servers_detail.rb +0 -0
  278. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/reboot_server.rb +0 -0
  279. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/resize_server.rb +0 -0
  280. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/revert_resized_server.rb +0 -0
  281. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/server_action.rb +0 -0
  282. data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/update_server.rb +0 -0
  283. data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/create_slice.rb +1 -1
  284. data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/delete_slice.rb +0 -0
  285. data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_backups.rb +1 -1
  286. data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_flavor.rb +1 -1
  287. data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_flavors.rb +1 -1
  288. data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_image.rb +1 -1
  289. data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_images.rb +1 -1
  290. data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_slice.rb +1 -1
  291. data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_slices.rb +1 -1
  292. data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/reboot_slice.rb +0 -0
  293. data/lib/fog/compute/requests/terremark_ecloud/get_catalog.rb +27 -0
  294. data/lib/fog/compute/requests/terremark_ecloud/get_catalog_item.rb +27 -0
  295. data/lib/fog/compute/requests/terremark_ecloud/get_ip_addresses.rb +27 -0
  296. data/lib/fog/compute/requests/terremark_ecloud/get_network.rb +27 -0
  297. data/lib/fog/compute/requests/terremark_ecloud/get_organization.rb +27 -0
  298. data/lib/fog/compute/requests/terremark_ecloud/get_vdc.rb +27 -0
  299. data/lib/fog/compute/requests/terremark_ecloud/get_versions.rb +32 -0
  300. data/lib/fog/{slicehost/compute.rb → compute/slicehost.rb} +17 -2
  301. data/lib/fog/compute/terremark_ecloud.rb +109 -0
  302. data/lib/fog/core.rb +0 -3
  303. data/lib/fog/core/connection.rb +2 -2
  304. data/lib/fog/core/credentials.rb +2 -1
  305. data/lib/fog/core/parser.rb +4 -0
  306. data/lib/fog/core/provider.rb +2 -6
  307. data/lib/fog/{core/dns.rb → dns.rb} +5 -5
  308. data/lib/fog/{aws/dns.rb → dns/aws.rb} +17 -2
  309. data/lib/fog/{linode/dns.rb → dns/linode.rb} +17 -2
  310. data/lib/fog/{aws/models/dns → dns/models/aws}/record.rb +0 -0
  311. data/lib/fog/{aws/models/dns → dns/models/aws}/records.rb +4 -2
  312. data/lib/fog/{aws/models/dns → dns/models/aws}/zone.rb +1 -1
  313. data/lib/fog/{aws/models/dns → dns/models/aws}/zones.rb +1 -1
  314. data/lib/fog/{linode/models/dns → dns/models/linode}/record.rb +0 -0
  315. data/lib/fog/{linode/models/dns → dns/models/linode}/records.rb +1 -1
  316. data/lib/fog/{linode/models/dns → dns/models/linode}/zone.rb +1 -1
  317. data/lib/fog/{linode/models/dns → dns/models/linode}/zones.rb +1 -1
  318. data/lib/fog/{slicehost/models/dns → dns/models/slicehost}/record.rb +0 -0
  319. data/lib/fog/{slicehost/models/dns → dns/models/slicehost}/records.rb +1 -1
  320. data/lib/fog/{slicehost/models/dns → dns/models/slicehost}/zone.rb +1 -1
  321. data/lib/fog/{slicehost/models/dns → dns/models/slicehost}/zones.rb +1 -1
  322. data/lib/fog/{zerigo/models/dns → dns/models/zerigo}/record.rb +0 -0
  323. data/lib/fog/{zerigo/models/dns → dns/models/zerigo}/records.rb +1 -1
  324. data/lib/fog/{zerigo/models/dns → dns/models/zerigo}/zone.rb +1 -1
  325. data/lib/fog/{zerigo/models/dns → dns/models/zerigo}/zones.rb +1 -1
  326. data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/change_resource_record_sets.rb +0 -0
  327. data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/create_hosted_zone.rb +0 -0
  328. data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/delete_hosted_zone.rb +0 -0
  329. data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/get_change.rb +0 -0
  330. data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/get_hosted_zone.rb +0 -0
  331. data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/list_hosted_zones.rb +0 -0
  332. data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/list_resource_record_sets.rb +0 -0
  333. data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/create_record.rb +0 -0
  334. data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/create_zone.rb +0 -0
  335. data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/get_record.rb +0 -0
  336. data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/get_records.rb +0 -0
  337. data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/get_zone.rb +0 -0
  338. data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/get_zones.rb +0 -0
  339. data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/count_hosts.rb +0 -0
  340. data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/count_zones.rb +0 -0
  341. data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/create_host.rb +0 -0
  342. data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/create_zone.rb +0 -0
  343. data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/find_hosts.rb +0 -0
  344. data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/get_host.rb +0 -0
  345. data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/get_zone.rb +0 -0
  346. data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/get_zone_stats.rb +0 -0
  347. data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/list_hosts.rb +0 -0
  348. data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/list_zones.rb +0 -0
  349. data/lib/fog/{aws/requests/dns → dns/requests/aws}/change_resource_record_sets.rb +1 -1
  350. data/lib/fog/{aws/requests/dns → dns/requests/aws}/create_hosted_zone.rb +1 -1
  351. data/lib/fog/{aws/requests/dns → dns/requests/aws}/delete_hosted_zone.rb +1 -1
  352. data/lib/fog/{aws/requests/dns → dns/requests/aws}/get_change.rb +1 -1
  353. data/lib/fog/{aws/requests/dns → dns/requests/aws}/get_hosted_zone.rb +1 -1
  354. data/lib/fog/{aws/requests/dns → dns/requests/aws}/list_hosted_zones.rb +1 -1
  355. data/lib/fog/{aws/requests/dns → dns/requests/aws}/list_resource_record_sets.rb +1 -1
  356. data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_create.rb +0 -0
  357. data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_delete.rb +0 -0
  358. data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_list.rb +0 -0
  359. data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_resource_create.rb +0 -0
  360. data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_resource_delete.rb +0 -0
  361. data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_resource_list.rb +0 -0
  362. data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_resource_update.rb +0 -0
  363. data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_update.rb +0 -0
  364. data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/create_record.rb +1 -1
  365. data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/create_zone.rb +1 -1
  366. data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/delete_record.rb +0 -0
  367. data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/delete_zone.rb +0 -0
  368. data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/get_record.rb +1 -1
  369. data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/get_records.rb +1 -1
  370. data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/get_zone.rb +1 -1
  371. data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/get_zones.rb +1 -1
  372. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/count_hosts.rb +1 -1
  373. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/count_zones.rb +1 -1
  374. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/create_host.rb +1 -1
  375. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/create_zone.rb +1 -1
  376. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/delete_host.rb +0 -0
  377. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/delete_zone.rb +0 -0
  378. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/find_hosts.rb +1 -1
  379. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/get_host.rb +1 -1
  380. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/get_zone.rb +1 -1
  381. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/get_zone_stats.rb +1 -1
  382. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/list_hosts.rb +1 -1
  383. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/list_zones.rb +1 -1
  384. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/update_host.rb +0 -0
  385. data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/update_zone.rb +0 -0
  386. data/lib/fog/{slicehost/dns.rb → dns/slicehost.rb} +17 -2
  387. data/lib/fog/{zerigo/dns.rb → dns/zerigo.rb} +18 -3
  388. data/lib/fog/providers.rb +12 -0
  389. data/lib/fog/{aws.rb → providers/aws.rb} +10 -11
  390. data/lib/fog/{bluebox.rb → providers/bluebox.rb} +2 -3
  391. data/lib/fog/providers/brightbox.rb +9 -0
  392. data/lib/fog/{go_grid.rb → providers/go_grid.rb} +2 -3
  393. data/lib/fog/{google.rb → providers/google.rb} +2 -3
  394. data/lib/fog/{linode.rb → providers/linode.rb} +3 -4
  395. data/lib/fog/{local.rb → providers/local.rb} +2 -3
  396. data/lib/fog/{new_servers.rb → providers/new_servers.rb} +2 -3
  397. data/lib/fog/{rackspace.rb → providers/rackspace.rb} +7 -8
  398. data/lib/fog/{slicehost.rb → providers/slicehost.rb} +3 -4
  399. data/lib/fog/providers/terremark_ecloud.rb +17 -0
  400. data/lib/fog/{zerigo.rb → providers/zerigo.rb} +2 -3
  401. data/lib/fog/{core/storage.rb → storage.rb} +6 -6
  402. data/lib/fog/{aws/storage.rb → storage/aws.rb} +32 -2
  403. data/lib/fog/{google/storage.rb → storage/google.rb} +17 -2
  404. data/lib/fog/{local/storage.rb → storage/local.rb} +18 -1
  405. data/lib/fog/{aws/models/storage → storage/models/aws}/directories.rb +1 -1
  406. data/lib/fog/{aws/models/storage → storage/models/aws}/directory.rb +1 -1
  407. data/lib/fog/{aws/models/storage → storage/models/aws}/file.rb +0 -0
  408. data/lib/fog/{aws/models/storage → storage/models/aws}/files.rb +1 -1
  409. data/lib/fog/{google/models/storage → storage/models/google}/directories.rb +1 -1
  410. data/lib/fog/{google/models/storage → storage/models/google}/directory.rb +1 -1
  411. data/lib/fog/{google/models/storage → storage/models/google}/file.rb +0 -0
  412. data/lib/fog/{google/models/storage → storage/models/google}/files.rb +1 -1
  413. data/lib/fog/{local/models/storage → storage/models/local}/directories.rb +1 -1
  414. data/lib/fog/{local/models/storage → storage/models/local}/directory.rb +1 -1
  415. data/lib/fog/{local/models/storage → storage/models/local}/file.rb +0 -0
  416. data/lib/fog/{local/models/storage → storage/models/local}/files.rb +1 -1
  417. data/lib/fog/{rackspace/models/storage → storage/models/rackspace}/directories.rb +1 -1
  418. data/lib/fog/{rackspace/models/storage → storage/models/rackspace}/directory.rb +1 -1
  419. data/lib/fog/{rackspace/models/storage → storage/models/rackspace}/file.rb +0 -0
  420. data/lib/fog/{rackspace/models/storage → storage/models/rackspace}/files.rb +1 -1
  421. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/access_control_list.rb +0 -0
  422. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/complete_multipart_upload.rb +0 -0
  423. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/copy_object.rb +0 -0
  424. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_bucket.rb +0 -0
  425. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_bucket_location.rb +0 -0
  426. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_bucket_logging.rb +0 -0
  427. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_bucket_object_versions.rb +0 -0
  428. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_bucket_versioning.rb +0 -0
  429. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_request_payment.rb +0 -0
  430. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_service.rb +0 -0
  431. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/initiate_multipart_upload.rb +0 -0
  432. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/list_multipart_uploads.rb +0 -0
  433. data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/list_parts.rb +0 -0
  434. data/lib/fog/{google/parsers/storage → storage/parsers/google}/access_control_list.rb +0 -0
  435. data/lib/fog/{google/parsers/storage → storage/parsers/google}/copy_object.rb +0 -0
  436. data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_bucket.rb +0 -0
  437. data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_bucket_logging.rb +0 -0
  438. data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_bucket_object_versions.rb +0 -0
  439. data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_bucket_versioning.rb +0 -0
  440. data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_request_payment.rb +0 -0
  441. data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_service.rb +0 -0
  442. data/lib/fog/{rackspace/storage.rb → storage/rackspace.rb} +36 -4
  443. data/lib/fog/{aws/requests/storage → storage/requests/aws}/abort_multipart_upload.rb +0 -0
  444. data/lib/fog/{aws/requests/storage → storage/requests/aws}/complete_multipart_upload.rb +1 -1
  445. data/lib/fog/{aws/requests/storage → storage/requests/aws}/copy_object.rb +1 -1
  446. data/lib/fog/{aws/requests/storage → storage/requests/aws}/delete_bucket.rb +0 -0
  447. data/lib/fog/{aws/requests/storage → storage/requests/aws}/delete_object.rb +0 -0
  448. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket.rb +1 -1
  449. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket_acl.rb +1 -1
  450. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket_location.rb +1 -1
  451. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket_logging.rb +1 -1
  452. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket_object_versions.rb +1 -1
  453. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket_versioning.rb +1 -1
  454. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_object.rb +0 -0
  455. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_object_acl.rb +1 -1
  456. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_object_torrent.rb +0 -0
  457. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_object_url.rb +0 -0
  458. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_request_payment.rb +1 -1
  459. data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_service.rb +1 -1
  460. data/lib/fog/{aws/requests/storage → storage/requests/aws}/head_object.rb +0 -0
  461. data/lib/fog/{aws/requests/storage → storage/requests/aws}/initiate_multipart_upload.rb +1 -1
  462. data/lib/fog/{aws/requests/storage → storage/requests/aws}/list_multipart_uploads.rb +1 -1
  463. data/lib/fog/{aws/requests/storage → storage/requests/aws}/list_parts.rb +1 -1
  464. data/lib/fog/{aws/requests/storage → storage/requests/aws}/post_object_hidden_fields.rb +0 -0
  465. data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_bucket.rb +0 -0
  466. data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_bucket_acl.rb +0 -0
  467. data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_bucket_logging.rb +0 -0
  468. data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_bucket_versioning.rb +0 -0
  469. data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_object.rb +0 -0
  470. data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_object_acl.rb +0 -0
  471. data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_object_url.rb +0 -0
  472. data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_request_payment.rb +0 -0
  473. data/lib/fog/{aws/requests/storage → storage/requests/aws}/sync_clock.rb +0 -0
  474. data/lib/fog/{aws/requests/storage → storage/requests/aws}/upload_part.rb +0 -0
  475. data/lib/fog/{google/requests/storage → storage/requests/google}/copy_object.rb +1 -1
  476. data/lib/fog/{google/requests/storage → storage/requests/google}/delete_bucket.rb +0 -0
  477. data/lib/fog/{google/requests/storage → storage/requests/google}/delete_object.rb +0 -0
  478. data/lib/fog/{google/requests/storage → storage/requests/google}/get_bucket.rb +1 -1
  479. data/lib/fog/{google/requests/storage → storage/requests/google}/get_bucket_acl.rb +1 -1
  480. data/lib/fog/{google/requests/storage → storage/requests/google}/get_object.rb +0 -0
  481. data/lib/fog/{google/requests/storage → storage/requests/google}/get_object_acl.rb +1 -1
  482. data/lib/fog/{google/requests/storage → storage/requests/google}/get_object_torrent.rb +0 -0
  483. data/lib/fog/{google/requests/storage → storage/requests/google}/get_object_url.rb +0 -0
  484. data/lib/fog/{google/requests/storage → storage/requests/google}/get_service.rb +1 -1
  485. data/lib/fog/{google/requests/storage → storage/requests/google}/head_object.rb +0 -0
  486. data/lib/fog/{google/requests/storage → storage/requests/google}/put_bucket.rb +0 -0
  487. data/lib/fog/{google/requests/storage → storage/requests/google}/put_bucket_acl.rb +0 -0
  488. data/lib/fog/{google/requests/storage → storage/requests/google}/put_object.rb +0 -0
  489. data/lib/fog/{google/requests/storage → storage/requests/google}/put_object_url.rb +0 -0
  490. data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/delete_container.rb +0 -0
  491. data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/delete_object.rb +0 -0
  492. data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/get_container.rb +0 -0
  493. data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/get_containers.rb +0 -0
  494. data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/get_object.rb +0 -0
  495. data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/head_container.rb +0 -0
  496. data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/head_containers.rb +0 -0
  497. data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/head_object.rb +0 -0
  498. data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/put_container.rb +0 -0
  499. data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/put_object.rb +0 -0
  500. data/lib/fog/terremark.rb +1 -1
  501. data/lib/fog/terremark/ecloud.rb +4 -0
  502. data/lib/fog/terremark/vcloud.rb +4 -0
  503. data/lib/fog/vcloud.rb +1 -1
  504. data/lib/fog/vcloud/terremark/ecloud.rb +4 -4
  505. data/lib/fog/vcloud/terremark/vcloud.rb +17 -0
  506. data/spec/aws/models/compute/address_spec.rb +1 -1
  507. data/spec/aws/models/compute/addresses_spec.rb +1 -1
  508. data/spec/aws/models/compute/key_pair_spec.rb +1 -1
  509. data/spec/aws/models/compute/key_pairs_spec.rb +1 -1
  510. data/spec/aws/models/compute/security_group_spec.rb +1 -1
  511. data/spec/aws/models/compute/security_groups_spec.rb +1 -1
  512. data/spec/aws/models/compute/server_spec.rb +1 -1
  513. data/spec/aws/models/compute/snapshot_spec.rb +1 -1
  514. data/spec/aws/models/compute/snapshots_spec.rb +1 -1
  515. data/spec/aws/models/compute/volume_spec.rb +1 -1
  516. data/spec/aws/models/compute/volumes_spec.rb +1 -1
  517. data/spec/spec_helper.rb +2 -2
  518. data/spec/vcloud/bin_spec.rb +1 -1
  519. data/spec/vcloud/models/vdc_spec.rb +1 -1
  520. data/spec/vcloud/requests/get_network_spec.rb +1 -1
  521. data/spec/vcloud/requests/get_organization_spec.rb +1 -1
  522. data/spec/vcloud/requests/get_vdc_spec.rb +1 -1
  523. data/spec/vcloud/requests/get_versions_spec.rb +1 -1
  524. data/spec/vcloud/requests/login_spec.rb +1 -1
  525. data/spec/vcloud/spec_helper.rb +3 -4
  526. data/spec/vcloud/terremark/ecloud/models/backup_internet_service_spec.rb +1 -1
  527. data/spec/vcloud/terremark/ecloud/models/backup_internet_services_spec.rb +1 -1
  528. data/spec/vcloud/terremark/ecloud/models/internet_service_spec.rb +1 -1
  529. data/spec/vcloud/terremark/ecloud/models/internet_services_spec.rb +1 -1
  530. data/spec/vcloud/terremark/ecloud/models/ip_spec.rb +1 -1
  531. data/spec/vcloud/terremark/ecloud/models/ips_spec.rb +1 -1
  532. data/spec/vcloud/terremark/ecloud/models/network_spec.rb +1 -1
  533. data/spec/vcloud/terremark/ecloud/models/networks_spec.rb +1 -1
  534. data/spec/vcloud/terremark/ecloud/models/node_spec.rb +1 -1
  535. data/spec/vcloud/terremark/ecloud/models/nodes_spec.rb +1 -1
  536. data/spec/vcloud/terremark/ecloud/models/public_ip_spec.rb +1 -1
  537. data/spec/vcloud/terremark/ecloud/models/public_ips_spec.rb +1 -1
  538. data/spec/vcloud/terremark/ecloud/models/server_spec.rb +1 -1
  539. data/spec/vcloud/terremark/ecloud/models/vdc_spec.rb +1 -1
  540. data/spec/vcloud/terremark/ecloud/models/vdcs_spec.rb +1 -1
  541. data/spec/vcloud/terremark/ecloud/requests/add_backup_internet_service_spec.rb +1 -1
  542. data/spec/vcloud/terremark/ecloud/requests/add_internet_service_spec.rb +1 -1
  543. data/spec/vcloud/terremark/ecloud/requests/add_node_spec.rb +1 -1
  544. data/spec/vcloud/terremark/ecloud/requests/configure_internet_service_spec.rb +1 -1
  545. data/spec/vcloud/terremark/ecloud/requests/configure_network_ip_spec.rb +1 -1
  546. data/spec/vcloud/terremark/ecloud/requests/configure_node_spec.rb +1 -1
  547. data/spec/vcloud/terremark/ecloud/requests/configure_vapp_spec.rb +1 -1
  548. data/spec/vcloud/terremark/ecloud/requests/delete_internet_service_spec.rb +1 -1
  549. data/spec/vcloud/terremark/ecloud/requests/delete_node_spec.rb +1 -1
  550. data/spec/vcloud/terremark/ecloud/requests/delete_vapp_spec.rb +1 -1
  551. data/spec/vcloud/terremark/ecloud/requests/get_catalog_item_spec.rb +1 -1
  552. data/spec/vcloud/terremark/ecloud/requests/get_catalog_spec.rb +1 -1
  553. data/spec/vcloud/terremark/ecloud/requests/get_customization_options_spec.rb +1 -1
  554. data/spec/vcloud/terremark/ecloud/requests/get_internet_services_spec.rb +1 -1
  555. data/spec/vcloud/terremark/ecloud/requests/get_network_ip_spec.rb +1 -1
  556. data/spec/vcloud/terremark/ecloud/requests/get_network_ips_spec.rb +1 -1
  557. data/spec/vcloud/terremark/ecloud/requests/get_network_spec.rb +1 -1
  558. data/spec/vcloud/terremark/ecloud/requests/get_node_spec.rb +1 -1
  559. data/spec/vcloud/terremark/ecloud/requests/get_nodes_spec.rb +1 -1
  560. data/spec/vcloud/terremark/ecloud/requests/get_public_ip_spec.rb +1 -1
  561. data/spec/vcloud/terremark/ecloud/requests/get_public_ips_spec.rb +1 -1
  562. data/spec/vcloud/terremark/ecloud/requests/get_vapp_spec.rb +1 -1
  563. data/spec/vcloud/terremark/ecloud/requests/get_vdc_spec.rb +1 -1
  564. data/spec/vcloud/terremark/ecloud/requests/instantiate_vapp_template_spec.rb +1 -1
  565. data/spec/vcloud/terremark/ecloud/requests/login_spec.rb +1 -1
  566. data/spec/vcloud/terremark/ecloud/requests/power_off_spec.rb +1 -1
  567. data/spec/vcloud/terremark/ecloud/requests/power_on_spec.rb +1 -1
  568. data/spec/vcloud/vcloud_spec.rb +1 -1
  569. data/tests/compute/requests/brightbox/helper.rb +2 -0
  570. data/tests/compute/requests/terremark_ecloud/catalog_tests.rb +47 -0
  571. data/tests/compute/requests/terremark_ecloud/helper.rb +45 -0
  572. data/tests/compute/requests/terremark_ecloud/network_tests.rb +30 -0
  573. data/tests/compute/requests/terremark_ecloud/organization_tests.rb +23 -0
  574. data/tests/compute/requests/terremark_ecloud/vdc_tests.rb +60 -0
  575. data/tests/helper.rb +30 -3
  576. data/tests/helpers/formats_helper.rb +3 -1
  577. metadata +508 -482
  578. data/lib/fog/aws/ec2.rb +0 -15
  579. data/lib/fog/aws/s3.rb +0 -15
  580. data/lib/fog/brightbox.rb +0 -9
  581. data/lib/fog/rackspace/files.rb +0 -15
  582. data/lib/fog/rackspace/servers.rb +0 -15
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fog (0.4.0)
4
+ fog (0.4.1)
5
5
  builder
6
- excon (>= 0.3.7)
6
+ excon (>= 0.4.0)
7
7
  formatador (>= 0.0.16)
8
8
  json
9
9
  mime-types
@@ -15,7 +15,7 @@ GEM
15
15
  remote: http://rubygems.org/
16
16
  specs:
17
17
  builder (3.0.0)
18
- excon (0.3.7)
18
+ excon (0.4.0)
19
19
  formatador (0.0.16)
20
20
  gestalt (0.0.11)
21
21
  formatador (>= 0.0.12)
@@ -35,7 +35,7 @@ PLATFORMS
35
35
 
36
36
  DEPENDENCIES
37
37
  builder
38
- excon (>= 0.3.7)
38
+ excon (>= 0.4.0)
39
39
  fog!
40
40
  formatador (>= 0.0.16)
41
41
  json
@@ -106,8 +106,8 @@ geemus says: "That should give you everything you need to get started, but let m
106
106
  == Providers
107
107
 
108
108
  You should try out the (varying) support fog has for:
109
- * {AWS}[http://aws.amazon.com] [{Compute}[http://aws.amazon.com/ec2], {ELB}[http://aws.amazon.com/elasticloadbalancing], {Storage}[http://aws.amazon.com/s3], {SimpleDB}[http://aws.amazon.com/simpledb]]
110
- * <b><em>{Blue Box Group}[http://www.blueboxgrp.com]</em></b> [{Compute}[http://www.blueboxgrp.com/blocks]]
109
+ * {AWS}[http://aws.amazon.com] [{Compute}[http://aws.amazon.com/ec2], {DNS}[http://aws.amazon.com/route53], {ELB}[http://aws.amazon.com/elasticloadbalancing], {Storage}[http://aws.amazon.com/s3], {SimpleDB}[http://aws.amazon.com/simpledb]]
110
+ * <b><em>{Blue Box Group}[http://www.bluebox.net]</em></b> [{Compute}[http://www.bluebox.net/blocks]]
111
111
  * <b><em>{Brightbox}[http://www.brightbox.co.uk]</em></b> [{Compute}[http://beta.brightbox.com/]]
112
112
  * {Google}[http://www.google.com] [{Storage}[http://code.google.com/apis/storage]]
113
113
  * {Linode}[http://www.linode.com] [{DNS}[http://www.linode.com]]
data/bin/fog CHANGED
@@ -8,7 +8,7 @@ unless Fog.credentials
8
8
  exit
9
9
  end
10
10
 
11
- require 'fog/core/bin'
11
+ require 'fog/bin'
12
12
 
13
13
  providers = Fog.providers.map{|provider| provider.to_s}
14
14
  providers = if providers.length > 1
@@ -7,14 +7,14 @@ Gem::Specification.new do |s|
7
7
  ## If your rubyforge_project name is different, then edit it and comment out
8
8
  ## the sub! line in the Rakefile
9
9
  s.name = 'fog'
10
- s.version = '0.4.0'
11
- s.date = '2011-01-05'
10
+ s.version = '0.4.1'
11
+ s.date = '2011-01-21'
12
12
  s.rubyforge_project = 'fog'
13
13
 
14
14
  ## Make sure your summary is short. The description may be as long
15
15
  ## as you like.
16
16
  s.summary = "brings clouds to you"
17
- s.description = "The Ruby cloud computing library."
17
+ s.description = "The Ruby cloud services library."
18
18
 
19
19
  ## List the primary authors. If there are a bunch of authors, it's probably
20
20
  ## better to set the email to an email list or something. If you don't have
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
43
43
  ## List your runtime dependencies here. Runtime dependencies are those
44
44
  ## that are needed for an end user to actually USE your code.
45
45
  s.add_dependency('builder')
46
- s.add_dependency('excon', '>=0.3.7')
46
+ s.add_dependency('excon', '>=0.4.0')
47
47
  s.add_dependency('formatador', '>=0.0.16')
48
48
  s.add_dependency('json')
49
49
  s.add_dependency('mime-types')
data/lib/fog.rb CHANGED
@@ -3,22 +3,17 @@ require File.join(File.dirname(__FILE__), 'fog', 'core')
3
3
  module Fog
4
4
 
5
5
  unless const_defined?(:VERSION)
6
- VERSION = '0.4.0'
6
+ VERSION = '0.4.1'
7
7
  end
8
8
 
9
9
  end
10
10
 
11
- require 'fog/aws'
12
- require 'fog/bluebox'
13
- require 'fog/brightbox'
14
- require 'fog/go_grid'
15
- require 'fog/google'
16
- require 'fog/linode'
17
- require 'fog/local'
18
- require 'fog/new_servers'
19
- require 'fog/rackspace'
20
- require 'fog/slicehost'
11
+ # FIXME: these should go away (force usage of Fog::[Compute, CDN, DNS, Storage] etc)
12
+ require 'fog/providers'
21
13
  require 'fog/terremark'
22
14
  require 'fog/vcloud'
23
- require 'fog/zerigo'
24
15
 
16
+ require 'fog/compute'
17
+ require 'fog/cdn'
18
+ require 'fog/dns'
19
+ require 'fog/storage'
@@ -16,6 +16,7 @@ module Fog
16
16
  ::Rackspace,
17
17
  ::Slicehost,
18
18
  ::Terremark,
19
+ ::TerremarkEcloud,
19
20
  ::Zerigo
20
21
  ].select {|provider| provider.available?}
21
22
  end
@@ -72,16 +73,17 @@ module Fog
72
73
 
73
74
  end
74
75
 
75
- require 'fog/aws/bin'
76
- require 'fog/bluebox/bin'
77
- require 'fog/brightbox/bin'
78
- require 'fog/go_grid/bin'
79
- require 'fog/google/bin'
80
- require 'fog/linode/bin'
81
- require 'fog/local/bin'
82
- require 'fog/new_servers/bin'
83
- require 'fog/rackspace/bin'
84
- require 'fog/slicehost/bin'
85
- require 'fog/terremark/bin'
86
- require 'fog/vcloud/bin'
87
- require 'fog/zerigo/bin'
76
+ require 'fog/bin/aws'
77
+ require 'fog/bin/bluebox'
78
+ require 'fog/bin/brightbox'
79
+ require 'fog/bin/go_grid'
80
+ require 'fog/bin/google'
81
+ require 'fog/bin/linode'
82
+ require 'fog/bin/local'
83
+ require 'fog/bin/new_servers'
84
+ require 'fog/bin/rackspace'
85
+ require 'fog/bin/slicehost'
86
+ require 'fog/bin/terremark'
87
+ require 'fog/bin/terremark_ecloud'
88
+ require 'fog/bin/vcloud'
89
+ require 'fog/bin/zerigo'
@@ -27,24 +27,37 @@ class AWS < Fog::Bin
27
27
 
28
28
  def [](service)
29
29
  @@connections ||= Hash.new do |hash, key|
30
- klazz = class_for(key)
31
- hash[key] = case key
30
+ hash[key] = case key
31
+ when :cdn
32
+ Fog::CDN.new(:provider => 'AWS')
33
+ when :compute
34
+ Fog::Compute.new(:provider => 'AWS')
35
+ when :dns
36
+ Fog::DNS.new(:provider => 'AWS')
32
37
  when :ec2
33
38
  location = caller.first
34
39
  warning = "[yellow][WARN] AWS[:ec2] is deprecated, use AWS[:compute] instead[/]"
35
40
  warning << " [light_black](" << location << ")[/] "
36
41
  Formatador.display_line(warning)
37
- klazz.new
42
+ Fog::Compute.new(:provider => 'AWS')
43
+ when :elb
44
+ Fog::AWS::ELB.new
45
+ when :iam
46
+ Fog::AWS::IAM.new
38
47
  when :eu_storage
39
- klazz.new(:region => 'eu-west-1')
48
+ Fog::Storage.new(:provider => 'AWS', :region => 'eu-west-1')
49
+ when :sdb
50
+ Fog::AWS::SimpleDB.new
40
51
  when :s3
41
52
  location = caller.first
42
53
  warning = "[yellow][WARN] AWS[:s3] is deprecated, use AWS[:storage] instead[/]"
43
54
  warning << " [light_black](" << location << ")[/] "
44
55
  Formatador.display_line(warning)
45
- klazz.new
56
+ Fog::Storage.new(:provider => 'AWS')
57
+ when :storage
58
+ Fog::Storage.new(:provider => 'AWS')
46
59
  else
47
- klazz.new
60
+ raise ArgumentError, "Unrecognized service: #{service}"
48
61
  end
49
62
  end
50
63
  @@connections[service]
@@ -12,13 +12,18 @@ class Bluebox < Fog::Bin
12
12
 
13
13
  def [](service)
14
14
  @@connections ||= Hash.new do |hash, key|
15
- if key == :blocks
15
+ hash[key] = case key
16
+ when :blocks
16
17
  location = caller.first
17
18
  warning = "[yellow][WARN] Bluebox[:blocks] is deprecated, use Bluebox[:compute] instead[/]"
18
19
  warning << " [light_black](" << location << ")[/] "
19
20
  Formatador.display_line(warning)
21
+ Fog::Compute.new(:provider => 'Bluebox')
22
+ when :compute
23
+ Fog::Compute.new(:provider => 'Bluebox')
24
+ else
25
+ raise ArgumentError, "Unrecognized service: #{service}"
20
26
  end
21
- hash[key] = class_for(key).new
22
27
  end
23
28
  @@connections[service]
24
29
  end
@@ -12,7 +12,12 @@ class Brightbox < Fog::Bin
12
12
 
13
13
  def [](service)
14
14
  @@connections ||= Hash.new do |hash, key|
15
- hash[key] = class_for(key).new
15
+ hash[key] = case key
16
+ when :compute
17
+ Fog::Compute.new(:provider => 'Brightbox')
18
+ else
19
+ raise ArgumentError, "Unrecognized service: #{service}"
20
+ end
16
21
  end
17
22
  @@connections[service]
18
23
  end
@@ -12,13 +12,18 @@ class GoGrid < Fog::Bin
12
12
 
13
13
  def [](service)
14
14
  @@connections ||= Hash.new do |hash, key|
15
- if key == :servers
15
+ hash[key] = case key
16
+ when :compute
17
+ Fog::Compute.new(:provider => 'GoGrid')
18
+ when :servers
16
19
  location = caller.first
17
20
  warning = "[yellow][WARN] GoGrid[:servers] is deprecated, use GoGrid[:compute] instead[/]"
18
21
  warning << " [light_black](" << location << ")[/] "
19
22
  Formatador.display_line(warning)
23
+ Fog::Compute.new(:provider => 'GoGrid')
24
+ else
25
+ raise ArgumentError, "Unrecognized service: #{service}"
20
26
  end
21
- hash[key] = class_for(key).new
22
27
  end
23
28
  @@connections[service]
24
29
  end
@@ -12,7 +12,12 @@ class Google < Fog::Bin
12
12
 
13
13
  def [](service)
14
14
  @@connections ||= Hash.new do |hash, key|
15
- hash[key] = class_for(key).new
15
+ hash[key] = case key
16
+ when :storage
17
+ Fog::Storage.new(:provider => 'Google')
18
+ else
19
+ raise ArgumentError, "Unrecognized service: #{service}"
20
+ end
16
21
  end
17
22
  @@connections[service]
18
23
  end
@@ -14,13 +14,20 @@ class Linode < Fog::Bin
14
14
 
15
15
  def [](service)
16
16
  @@connections ||= Hash.new do |hash, key|
17
- if key == :linode
17
+ hash[key] = case key
18
+ when :compute
19
+ Fog::Compute.new(:provider => 'Linode')
20
+ when :dns
21
+ Fog::DNS.new(:provider => 'Linode')
22
+ when :linode
18
23
  location = caller.first
19
24
  warning = "[yellow][WARN] Linode[:linode] is deprecated, use Linode[:compute] instead[/]"
20
25
  warning << " [light_black](" << location << ")[/] "
21
26
  Formatador.display_line(warning)
27
+ Fog::Compute.new(:provider => 'Linode')
28
+ else
29
+ raise ArgumentError, "Unrecognized service: #{service}"
22
30
  end
23
- hash[key] = class_for(key).new
24
31
  end
25
32
  @@connections[service]
26
33
  end
@@ -12,13 +12,18 @@ class Local < Fog::Bin
12
12
 
13
13
  def [](service)
14
14
  @@connections ||= Hash.new do |hash, key|
15
- if key == :files
15
+ hash[key] = case key
16
+ when :files
16
17
  location = caller.first
17
18
  warning = "[yellow][WARN] Local[:files] is deprecated, use Local[:storage] instead[/]"
18
19
  warning << " [light_black](" << location << ")[/] "
19
20
  Formatador.display_line(warning)
21
+ Fog::Storage.new(:provider => 'Local')
22
+ when :storage
23
+ Fog::Storage.new(:provider => 'Local')
24
+ else
25
+ raise ArgumentError, "Unrecognized service: #{service}"
20
26
  end
21
- hash[key] = class_for(key).new
22
27
  end
23
28
  @@connections[service]
24
29
  end
@@ -12,13 +12,18 @@ class NewServers < Fog::Bin
12
12
 
13
13
  def [](service)
14
14
  @@connections ||= Hash.new do |hash, key|
15
- if key == :new_servers
15
+ hash[key] = case key
16
+ when :compute
17
+ Fog::Compute.new(:provider => 'NewServers')
18
+ when :new_servers
16
19
  location = caller.first
17
- warning = "[yellow][WARN] NewServers[:servers] is deprecated, use NewServers[:compute] instead[/]"
20
+ warning = "[yellow][WARN] NewServers[:new_servers] is deprecated, use NewServers[:compute] instead[/]"
18
21
  warning << " [light_black](" << location << ")[/] "
19
22
  Formatador.display_line(warning)
23
+ Fog::Compute.new(:provider => 'NewServers')
24
+ else
25
+ raise ArgumentError, "Unrecognized service: #{service}"
20
26
  end
21
- hash[key] = class_for(key).new
22
27
  end
23
28
  @@connections[service]
24
29
  end
@@ -16,22 +16,29 @@ class Rackspace < Fog::Bin
16
16
 
17
17
  def [](service)
18
18
  @@connections ||= Hash.new do |hash, key|
19
- klazz = class_for(key)
20
19
  hash[key] = case key
20
+ when :cdn
21
+ Fog::CDN.new(:provider => 'Rackspace')
22
+ when :compute
23
+ Fog::Compute.new(:provider => 'Rackspace')
24
+ when :dns
25
+ Fog::DNS.new(:provider => 'Rackspace')
21
26
  when :files
22
27
  location = caller.first
23
28
  warning = "[yellow][WARN] Rackspace[:files] is deprecated, use Rackspace[:storage] instead[/]"
24
29
  warning << " [light_black](" << location << ")[/] "
25
30
  Formatador.display_line(warning)
26
- klazz.new
31
+ Fog::Storage.new(:provider => 'Rackspace')
27
32
  when :servers
28
33
  location = caller.first
29
34
  warning = "[yellow][WARN] Rackspace[:servers] is deprecated, use Rackspace[:compute] instead[/]"
30
35
  warning << " [light_black](" << location << ")[/] "
31
36
  Formatador.display_line(warning)
32
- klazz.new
37
+ Fog::Compute.new(:provider => Rackspace)
38
+ when :storage
39
+ Fog::Storage.new(:provider => 'Rackspace')
33
40
  else
34
- klazz.new
41
+ raise ArgumentError, "Unrecognized service: #{service}"
35
42
  end
36
43
  end
37
44
  @@connections[service]
@@ -20,7 +20,14 @@ class Slicehost < Fog::Bin
20
20
  warning << " [light_black](" << location << ")[/] "
21
21
  Formatador.display_line(warning)
22
22
  end
23
- hash[key] = class_for(key).new
23
+ hash[key] = case key
24
+ when :compute, :slices
25
+ Fog::Compute.new(:provider => 'Slicehost')
26
+ when :dns
27
+ Fog::DNS.new(:provider => 'Slicehost')
28
+ else
29
+ raise ArgumentError, "Unrecognized service: #{service}"
30
+ end
24
31
  end
25
32
  @@connections[service]
26
33
  end
@@ -0,0 +1,28 @@
1
+ class TerremarkEcloud < Fog::Bin
2
+ class << self
3
+
4
+ def class_for(key)
5
+ case key
6
+ when :compute
7
+ Fog::TerremarkEcloud::Compute
8
+ else
9
+ # @todo Replace most instances of ArgumentError with NotImplementedError
10
+ # @todo For a list of widely supported Exceptions, see:
11
+ # => http://www.zenspider.com/Languages/Ruby/QuickRef.html#35
12
+ raise ArgumentError, "Unsupported #{self} service: #{key}"
13
+ end
14
+ end
15
+
16
+ def [](service)
17
+ @@connections ||= Hash.new do |hash, key|
18
+ hash[key] = class_for(key).new
19
+ end
20
+ @@connections[service]
21
+ end
22
+
23
+ def services
24
+ [:compute]
25
+ end
26
+
27
+ end
28
+ end
File without changes
@@ -12,7 +12,12 @@ class Zerigo < Fog::Bin
12
12
 
13
13
  def [](service)
14
14
  @@connections ||= Hash.new do |hash, key|
15
- hash[key] = class_for(key).new
15
+ hash[key] = case key
16
+ when :dns
17
+ Fog::DNS.new(:provider => 'Zerigo')
18
+ else
19
+ raise ArgumentError, "Unrecognized service: #{service}"
20
+ end
16
21
  end
17
22
  @@connections[service]
18
23
  end
@@ -0,0 +1,19 @@
1
+ module Fog
2
+ class CDN
3
+
4
+ def self.new(attributes)
5
+ attributes = attributes.dup # prevent delete from having side effects
6
+ case provider = attributes[:provider] # attributes.delete(:provider)
7
+ when 'AWS'
8
+ require 'fog/cdn/aws'
9
+ Fog::AWS::CDN.new(attributes)
10
+ when 'Rackspace'
11
+ require 'fog/cdn/rackspace'
12
+ Fog::Rackspace::CDN.new(attributes)
13
+ else
14
+ raise ArgumentError.new("#{provider} is not a recognized storage provider")
15
+ end
16
+ end
17
+
18
+ end
19
+ end