fog 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +4 -4
- data/README.rdoc +2 -2
- data/bin/fog +1 -1
- data/fog.gemspec +4 -4
- data/lib/fog.rb +7 -12
- data/lib/fog/{core/bin.rb → bin.rb} +15 -13
- data/lib/fog/{aws/bin.rb → bin/aws.rb} +19 -6
- data/lib/fog/{bluebox/bin.rb → bin/bluebox.rb} +7 -2
- data/lib/fog/{brightbox/bin.rb → bin/brightbox.rb} +6 -1
- data/lib/fog/{go_grid/bin.rb → bin/go_grid.rb} +7 -2
- data/lib/fog/{google/bin.rb → bin/google.rb} +6 -1
- data/lib/fog/{linode/bin.rb → bin/linode.rb} +9 -2
- data/lib/fog/{local/bin.rb → bin/local.rb} +7 -2
- data/lib/fog/{new_servers/bin.rb → bin/new_servers.rb} +8 -3
- data/lib/fog/{rackspace/bin.rb → bin/rackspace.rb} +11 -4
- data/lib/fog/{slicehost/bin.rb → bin/slicehost.rb} +8 -1
- data/lib/fog/{terremark/bin.rb → bin/terremark.rb} +0 -0
- data/lib/fog/bin/terremark_ecloud.rb +28 -0
- data/lib/fog/{vcloud/bin.rb → bin/vcloud.rb} +0 -0
- data/lib/fog/{zerigo/bin.rb → bin/zerigo.rb} +6 -1
- data/lib/fog/cdn.rb +19 -0
- data/lib/fog/{aws/cdn.rb → cdn/aws.rb} +17 -2
- data/lib/fog/{aws/parsers/cdn → cdn/parsers/aws}/distribution.rb +0 -0
- data/lib/fog/{aws/parsers/cdn → cdn/parsers/aws}/get_distribution_list.rb +0 -0
- data/lib/fog/{aws/parsers/cdn → cdn/parsers/aws}/post_invalidation.rb +0 -0
- data/lib/fog/{rackspace/cdn.rb → cdn/rackspace.rb} +17 -2
- data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/delete_distribution.rb +0 -0
- data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/get_distribution.rb +1 -1
- data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/get_distribution_list.rb +1 -1
- data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/post_distribution.rb +3 -3
- data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/post_invalidation.rb +1 -1
- data/lib/fog/{aws/requests/cdn → cdn/requests/aws}/put_distribution_config.rb +1 -1
- data/lib/fog/{rackspace/requests/cdn → cdn/requests/rackspace}/get_containers.rb +0 -0
- data/lib/fog/{rackspace/requests/cdn → cdn/requests/rackspace}/head_container.rb +0 -0
- data/lib/fog/{rackspace/requests/cdn → cdn/requests/rackspace}/put_container.rb +0 -0
- data/lib/fog/{core/compute.rb → compute.rb} +13 -10
- data/lib/fog/{aws/compute.rb → compute/aws.rb} +34 -3
- data/lib/fog/{bluebox/compute.rb → compute/bluebox.rb} +18 -3
- data/lib/fog/{brightbox/compute.rb → compute/brightbox.rb} +34 -19
- data/lib/fog/{go_grid/compute.rb → compute/go_grid.rb} +17 -2
- data/lib/fog/{linode/compute.rb → compute/linode.rb} +17 -2
- data/lib/fog/{aws/models/compute → compute/models/aws}/address.rb +0 -0
- data/lib/fog/{aws/models/compute → compute/models/aws}/addresses.rb +1 -1
- data/lib/fog/{aws/models/compute → compute/models/aws}/flavor.rb +0 -0
- data/lib/fog/{aws/models/compute → compute/models/aws}/flavors.rb +1 -1
- data/lib/fog/{aws/models/compute → compute/models/aws}/image.rb +0 -0
- data/lib/fog/{aws/models/compute → compute/models/aws}/images.rb +1 -1
- data/lib/fog/{aws/models/compute → compute/models/aws}/key_pair.rb +0 -0
- data/lib/fog/{aws/models/compute → compute/models/aws}/key_pairs.rb +1 -1
- data/lib/fog/{aws/models/compute → compute/models/aws}/security_group.rb +0 -0
- data/lib/fog/{aws/models/compute → compute/models/aws}/security_groups.rb +1 -1
- data/lib/fog/{aws/models/compute → compute/models/aws}/server.rb +0 -0
- data/lib/fog/{aws/models/compute → compute/models/aws}/servers.rb +1 -1
- data/lib/fog/{aws/models/compute → compute/models/aws}/snapshot.rb +0 -0
- data/lib/fog/{aws/models/compute → compute/models/aws}/snapshots.rb +1 -1
- data/lib/fog/{aws/models/compute → compute/models/aws}/tag.rb +0 -0
- data/lib/fog/{aws/models/compute → compute/models/aws}/tags.rb +1 -1
- data/lib/fog/{aws/models/compute → compute/models/aws}/volume.rb +0 -0
- data/lib/fog/{aws/models/compute → compute/models/aws}/volumes.rb +1 -1
- data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/flavor.rb +0 -0
- data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/flavors.rb +1 -1
- data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/image.rb +0 -0
- data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/images.rb +1 -1
- data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/server.rb +0 -0
- data/lib/fog/{bluebox/models/compute → compute/models/bluebox}/servers.rb +1 -1
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/account.rb +0 -0
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/cloud_ip.rb +0 -0
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/cloud_ips.rb +1 -1
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/flavor.rb +0 -0
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/flavors.rb +1 -1
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/image.rb +0 -0
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/images.rb +1 -1
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/load_balancer.rb +0 -0
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/load_balancers.rb +1 -1
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/server.rb +0 -0
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/servers.rb +1 -1
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/user.rb +0 -0
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/users.rb +1 -1
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/zone.rb +0 -0
- data/lib/fog/{brightbox/models/compute → compute/models/brightbox}/zones.rb +1 -1
- data/lib/fog/{go_grid/models/compute → compute/models/go_grid}/image.rb +0 -0
- data/lib/fog/{go_grid/models/compute → compute/models/go_grid}/images.rb +0 -0
- data/lib/fog/{go_grid/models/compute → compute/models/go_grid}/server.rb +0 -0
- data/lib/fog/{go_grid/models/compute → compute/models/go_grid}/servers.rb +0 -0
- data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/flavor.rb +0 -0
- data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/flavors.rb +1 -1
- data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/image.rb +0 -0
- data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/images.rb +1 -1
- data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/server.rb +0 -0
- data/lib/fog/{rackspace/models/compute → compute/models/rackspace}/servers.rb +1 -1
- data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/flavor.rb +0 -0
- data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/flavors.rb +1 -1
- data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/image.rb +0 -0
- data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/images.rb +1 -1
- data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/server.rb +0 -0
- data/lib/fog/{slicehost/models/compute → compute/models/slicehost}/servers.rb +1 -1
- data/lib/fog/{new_servers/compute.rb → compute/new_servers.rb} +17 -2
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/allocate_address.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/attach_volume.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/basic.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/create_image.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/create_key_pair.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/create_snapshot.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/create_volume.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/deregister_image.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_addresses.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_availability_zones.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_images.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_instances.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_key_pairs.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_regions.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_reserved_instances.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_security_groups.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_snapshots.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_tags.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/describe_volumes.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/detach_volume.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/get_console_output.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/import_key_pair.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/register_image.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/run_instances.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/start_stop_instances.rb +0 -0
- data/lib/fog/{aws/parsers/compute → compute/parsers/aws}/terminate_instances.rb +0 -0
- data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/create_slice.rb +0 -0
- data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_backups.rb +0 -0
- data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_flavor.rb +0 -0
- data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_flavors.rb +0 -0
- data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_image.rb +0 -0
- data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_images.rb +0 -0
- data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_slice.rb +0 -0
- data/lib/fog/{slicehost/parsers/compute → compute/parsers/slicehost}/get_slices.rb +0 -0
- data/lib/fog/compute/parsers/terremark_ecloud/get_catalog.rb +36 -0
- data/lib/fog/compute/parsers/terremark_ecloud/get_catalog_item.rb +43 -0
- data/lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb +27 -0
- data/lib/fog/compute/parsers/terremark_ecloud/get_network.rb +59 -0
- data/lib/fog/compute/parsers/terremark_ecloud/get_organization.rb +35 -0
- data/lib/fog/compute/parsers/terremark_ecloud/get_vdc.rb +110 -0
- data/lib/fog/compute/parsers/terremark_ecloud/get_versions.rb +28 -0
- data/lib/fog/compute/parsers/terremark_ecloud/login.rb +27 -0
- data/lib/fog/{rackspace/compute.rb → compute/rackspace.rb} +33 -2
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/allocate_address.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/associate_address.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/attach_volume.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/authorize_security_group_ingress.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_image.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_key_pair.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_security_group.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_snapshot.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_tags.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/create_volume.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/delete_key_pair.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/delete_security_group.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/delete_snapshot.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/delete_tags.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/delete_volume.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/deregister_image.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_addresses.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_availability_zones.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_images.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_instances.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_key_pairs.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_regions.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_reserved_instances.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_security_groups.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_snapshots.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_tags.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/describe_volumes.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/detach_volume.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/disassociate_address.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/get_console_output.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/import_key_pair.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/modify_image_attributes.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/modify_snapshot_attribute.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/reboot_instances.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/register_image.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/release_address.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/revoke_security_group_ingress.rb +0 -0
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/run_instances.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/start_instances.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/stop_instances.rb +1 -1
- data/lib/fog/{aws/requests/compute → compute/requests/aws}/terminate_instances.rb +1 -1
- data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/create_block.rb +0 -0
- data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/destroy_block.rb +0 -0
- data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_block.rb +0 -0
- data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_blocks.rb +0 -0
- data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_product.rb +0 -0
- data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_products.rb +0 -0
- data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_template.rb +0 -0
- data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/get_templates.rb +0 -0
- data/lib/fog/{bluebox/requests/compute → compute/requests/bluebox}/reboot_block.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/add_nodes_load_balancer.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/create_api_client.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/create_cloud_ip.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/create_image.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/create_load_balancer.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/create_server.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/destroy_api_client.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/destroy_cloud_ip.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/destroy_image.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/destroy_load_balancer.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/destroy_server.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_account.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_api_client.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_cloud_ip.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_image.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_interface.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_load_balancer.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_server.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_server_type.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_user.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/get_zone.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_api_clients.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_cloud_ips.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_images.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_load_balancers.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_server_types.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_servers.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_users.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/list_zones.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/map_cloud_ip.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/remove_nodes_load_balancer.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/reset_ftp_password_account.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/resize_server.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/shutdown_server.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/snapshot_server.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/start_server.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/stop_server.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/unmap_cloud_ip.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_account.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_api_client.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_image.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_load_balancer.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_server.rb +0 -0
- data/lib/fog/{brightbox/requests/compute → compute/requests/brightbox}/update_user.rb +0 -0
- data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/common_lookup_list.rb +0 -0
- data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_image_get.rb +0 -0
- data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_image_list.rb +0 -0
- data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_ip_list.rb +0 -0
- data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_loadbalancer_list.rb +0 -0
- data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_server_add.rb +0 -0
- data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_server_delete.rb +0 -0
- data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_server_get.rb +0 -0
- data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_server_list.rb +0 -0
- data/lib/fog/{go_grid/requests/compute → compute/requests/go_grid}/grid_server_power.rb +0 -0
- data/lib/fog/{linode/requests/compute → compute/requests/linode}/avail_datacenters.rb +0 -0
- data/lib/fog/{linode/requests/compute → compute/requests/linode}/avail_distributions.rb +0 -0
- data/lib/fog/{linode/requests/compute → compute/requests/linode}/avail_kernels.rb +0 -0
- data/lib/fog/{linode/requests/compute → compute/requests/linode}/avail_linodeplans.rb +0 -0
- data/lib/fog/{linode/requests/compute → compute/requests/linode}/avail_stackscripts.rb +0 -0
- data/lib/fog/{linode/requests/compute → compute/requests/linode}/linode_create.rb +0 -0
- data/lib/fog/{linode/requests/compute → compute/requests/linode}/linode_delete.rb +0 -0
- data/lib/fog/{linode/requests/compute → compute/requests/linode}/linode_list.rb +0 -0
- data/lib/fog/{linode/requests/compute → compute/requests/linode}/linode_reboot.rb +0 -0
- data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/add_server.rb +0 -0
- data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/cancel_server.rb +0 -0
- data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/get_server.rb +0 -0
- data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/list_images.rb +0 -0
- data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/list_plans.rb +0 -0
- data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/list_servers.rb +0 -0
- data/lib/fog/{new_servers/requests/compute → compute/requests/new_servers}/reboot_server.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/confirm_resized_server.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/create_image.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/create_server.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/delete_image.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/delete_server.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/get_flavor_details.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/get_image_details.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/get_server_details.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_addresses.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_flavors.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_flavors_detail.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_images.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_images_detail.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_private_addresses.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_public_addresses.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_servers.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/list_servers_detail.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/reboot_server.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/resize_server.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/revert_resized_server.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/server_action.rb +0 -0
- data/lib/fog/{rackspace/requests/compute → compute/requests/rackspace}/update_server.rb +0 -0
- data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/create_slice.rb +1 -1
- data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/delete_slice.rb +0 -0
- data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_backups.rb +1 -1
- data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_flavor.rb +1 -1
- data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_flavors.rb +1 -1
- data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_image.rb +1 -1
- data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_images.rb +1 -1
- data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_slice.rb +1 -1
- data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/get_slices.rb +1 -1
- data/lib/fog/{slicehost/requests/compute → compute/requests/slicehost}/reboot_slice.rb +0 -0
- data/lib/fog/compute/requests/terremark_ecloud/get_catalog.rb +27 -0
- data/lib/fog/compute/requests/terremark_ecloud/get_catalog_item.rb +27 -0
- data/lib/fog/compute/requests/terremark_ecloud/get_ip_addresses.rb +27 -0
- data/lib/fog/compute/requests/terremark_ecloud/get_network.rb +27 -0
- data/lib/fog/compute/requests/terremark_ecloud/get_organization.rb +27 -0
- data/lib/fog/compute/requests/terremark_ecloud/get_vdc.rb +27 -0
- data/lib/fog/compute/requests/terremark_ecloud/get_versions.rb +32 -0
- data/lib/fog/{slicehost/compute.rb → compute/slicehost.rb} +17 -2
- data/lib/fog/compute/terremark_ecloud.rb +109 -0
- data/lib/fog/core.rb +0 -3
- data/lib/fog/core/connection.rb +2 -2
- data/lib/fog/core/credentials.rb +2 -1
- data/lib/fog/core/parser.rb +4 -0
- data/lib/fog/core/provider.rb +2 -6
- data/lib/fog/{core/dns.rb → dns.rb} +5 -5
- data/lib/fog/{aws/dns.rb → dns/aws.rb} +17 -2
- data/lib/fog/{linode/dns.rb → dns/linode.rb} +17 -2
- data/lib/fog/{aws/models/dns → dns/models/aws}/record.rb +0 -0
- data/lib/fog/{aws/models/dns → dns/models/aws}/records.rb +4 -2
- data/lib/fog/{aws/models/dns → dns/models/aws}/zone.rb +1 -1
- data/lib/fog/{aws/models/dns → dns/models/aws}/zones.rb +1 -1
- data/lib/fog/{linode/models/dns → dns/models/linode}/record.rb +0 -0
- data/lib/fog/{linode/models/dns → dns/models/linode}/records.rb +1 -1
- data/lib/fog/{linode/models/dns → dns/models/linode}/zone.rb +1 -1
- data/lib/fog/{linode/models/dns → dns/models/linode}/zones.rb +1 -1
- data/lib/fog/{slicehost/models/dns → dns/models/slicehost}/record.rb +0 -0
- data/lib/fog/{slicehost/models/dns → dns/models/slicehost}/records.rb +1 -1
- data/lib/fog/{slicehost/models/dns → dns/models/slicehost}/zone.rb +1 -1
- data/lib/fog/{slicehost/models/dns → dns/models/slicehost}/zones.rb +1 -1
- data/lib/fog/{zerigo/models/dns → dns/models/zerigo}/record.rb +0 -0
- data/lib/fog/{zerigo/models/dns → dns/models/zerigo}/records.rb +1 -1
- data/lib/fog/{zerigo/models/dns → dns/models/zerigo}/zone.rb +1 -1
- data/lib/fog/{zerigo/models/dns → dns/models/zerigo}/zones.rb +1 -1
- data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/change_resource_record_sets.rb +0 -0
- data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/create_hosted_zone.rb +0 -0
- data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/delete_hosted_zone.rb +0 -0
- data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/get_change.rb +0 -0
- data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/get_hosted_zone.rb +0 -0
- data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/list_hosted_zones.rb +0 -0
- data/lib/fog/{aws/parsers/dns → dns/parsers/aws}/list_resource_record_sets.rb +0 -0
- data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/create_record.rb +0 -0
- data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/create_zone.rb +0 -0
- data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/get_record.rb +0 -0
- data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/get_records.rb +0 -0
- data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/get_zone.rb +0 -0
- data/lib/fog/{slicehost/parsers/dns → dns/parsers/slicehost}/get_zones.rb +0 -0
- data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/count_hosts.rb +0 -0
- data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/count_zones.rb +0 -0
- data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/create_host.rb +0 -0
- data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/create_zone.rb +0 -0
- data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/find_hosts.rb +0 -0
- data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/get_host.rb +0 -0
- data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/get_zone.rb +0 -0
- data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/get_zone_stats.rb +0 -0
- data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/list_hosts.rb +0 -0
- data/lib/fog/{zerigo/parsers/dns → dns/parsers/zerigo}/list_zones.rb +0 -0
- data/lib/fog/{aws/requests/dns → dns/requests/aws}/change_resource_record_sets.rb +1 -1
- data/lib/fog/{aws/requests/dns → dns/requests/aws}/create_hosted_zone.rb +1 -1
- data/lib/fog/{aws/requests/dns → dns/requests/aws}/delete_hosted_zone.rb +1 -1
- data/lib/fog/{aws/requests/dns → dns/requests/aws}/get_change.rb +1 -1
- data/lib/fog/{aws/requests/dns → dns/requests/aws}/get_hosted_zone.rb +1 -1
- data/lib/fog/{aws/requests/dns → dns/requests/aws}/list_hosted_zones.rb +1 -1
- data/lib/fog/{aws/requests/dns → dns/requests/aws}/list_resource_record_sets.rb +1 -1
- data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_create.rb +0 -0
- data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_delete.rb +0 -0
- data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_list.rb +0 -0
- data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_resource_create.rb +0 -0
- data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_resource_delete.rb +0 -0
- data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_resource_list.rb +0 -0
- data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_resource_update.rb +0 -0
- data/lib/fog/{linode/requests/dns → dns/requests/linode}/domain_update.rb +0 -0
- data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/create_record.rb +1 -1
- data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/create_zone.rb +1 -1
- data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/delete_record.rb +0 -0
- data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/delete_zone.rb +0 -0
- data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/get_record.rb +1 -1
- data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/get_records.rb +1 -1
- data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/get_zone.rb +1 -1
- data/lib/fog/{slicehost/requests/dns → dns/requests/slicehost}/get_zones.rb +1 -1
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/count_hosts.rb +1 -1
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/count_zones.rb +1 -1
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/create_host.rb +1 -1
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/create_zone.rb +1 -1
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/delete_host.rb +0 -0
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/delete_zone.rb +0 -0
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/find_hosts.rb +1 -1
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/get_host.rb +1 -1
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/get_zone.rb +1 -1
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/get_zone_stats.rb +1 -1
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/list_hosts.rb +1 -1
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/list_zones.rb +1 -1
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/update_host.rb +0 -0
- data/lib/fog/{zerigo/requests/dns → dns/requests/zerigo}/update_zone.rb +0 -0
- data/lib/fog/{slicehost/dns.rb → dns/slicehost.rb} +17 -2
- data/lib/fog/{zerigo/dns.rb → dns/zerigo.rb} +18 -3
- data/lib/fog/providers.rb +12 -0
- data/lib/fog/{aws.rb → providers/aws.rb} +10 -11
- data/lib/fog/{bluebox.rb → providers/bluebox.rb} +2 -3
- data/lib/fog/providers/brightbox.rb +9 -0
- data/lib/fog/{go_grid.rb → providers/go_grid.rb} +2 -3
- data/lib/fog/{google.rb → providers/google.rb} +2 -3
- data/lib/fog/{linode.rb → providers/linode.rb} +3 -4
- data/lib/fog/{local.rb → providers/local.rb} +2 -3
- data/lib/fog/{new_servers.rb → providers/new_servers.rb} +2 -3
- data/lib/fog/{rackspace.rb → providers/rackspace.rb} +7 -8
- data/lib/fog/{slicehost.rb → providers/slicehost.rb} +3 -4
- data/lib/fog/providers/terremark_ecloud.rb +17 -0
- data/lib/fog/{zerigo.rb → providers/zerigo.rb} +2 -3
- data/lib/fog/{core/storage.rb → storage.rb} +6 -6
- data/lib/fog/{aws/storage.rb → storage/aws.rb} +32 -2
- data/lib/fog/{google/storage.rb → storage/google.rb} +17 -2
- data/lib/fog/{local/storage.rb → storage/local.rb} +18 -1
- data/lib/fog/{aws/models/storage → storage/models/aws}/directories.rb +1 -1
- data/lib/fog/{aws/models/storage → storage/models/aws}/directory.rb +1 -1
- data/lib/fog/{aws/models/storage → storage/models/aws}/file.rb +0 -0
- data/lib/fog/{aws/models/storage → storage/models/aws}/files.rb +1 -1
- data/lib/fog/{google/models/storage → storage/models/google}/directories.rb +1 -1
- data/lib/fog/{google/models/storage → storage/models/google}/directory.rb +1 -1
- data/lib/fog/{google/models/storage → storage/models/google}/file.rb +0 -0
- data/lib/fog/{google/models/storage → storage/models/google}/files.rb +1 -1
- data/lib/fog/{local/models/storage → storage/models/local}/directories.rb +1 -1
- data/lib/fog/{local/models/storage → storage/models/local}/directory.rb +1 -1
- data/lib/fog/{local/models/storage → storage/models/local}/file.rb +0 -0
- data/lib/fog/{local/models/storage → storage/models/local}/files.rb +1 -1
- data/lib/fog/{rackspace/models/storage → storage/models/rackspace}/directories.rb +1 -1
- data/lib/fog/{rackspace/models/storage → storage/models/rackspace}/directory.rb +1 -1
- data/lib/fog/{rackspace/models/storage → storage/models/rackspace}/file.rb +0 -0
- data/lib/fog/{rackspace/models/storage → storage/models/rackspace}/files.rb +1 -1
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/access_control_list.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/complete_multipart_upload.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/copy_object.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_bucket.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_bucket_location.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_bucket_logging.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_bucket_object_versions.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_bucket_versioning.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_request_payment.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/get_service.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/initiate_multipart_upload.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/list_multipart_uploads.rb +0 -0
- data/lib/fog/{aws/parsers/storage → storage/parsers/aws}/list_parts.rb +0 -0
- data/lib/fog/{google/parsers/storage → storage/parsers/google}/access_control_list.rb +0 -0
- data/lib/fog/{google/parsers/storage → storage/parsers/google}/copy_object.rb +0 -0
- data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_bucket.rb +0 -0
- data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_bucket_logging.rb +0 -0
- data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_bucket_object_versions.rb +0 -0
- data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_bucket_versioning.rb +0 -0
- data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_request_payment.rb +0 -0
- data/lib/fog/{google/parsers/storage → storage/parsers/google}/get_service.rb +0 -0
- data/lib/fog/{rackspace/storage.rb → storage/rackspace.rb} +36 -4
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/abort_multipart_upload.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/complete_multipart_upload.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/copy_object.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/delete_bucket.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/delete_object.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket_acl.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket_location.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket_logging.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket_object_versions.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_bucket_versioning.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_object.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_object_acl.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_object_torrent.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_object_url.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_request_payment.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/get_service.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/head_object.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/initiate_multipart_upload.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/list_multipart_uploads.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/list_parts.rb +1 -1
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/post_object_hidden_fields.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_bucket.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_bucket_acl.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_bucket_logging.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_bucket_versioning.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_object.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_object_acl.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_object_url.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/put_request_payment.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/sync_clock.rb +0 -0
- data/lib/fog/{aws/requests/storage → storage/requests/aws}/upload_part.rb +0 -0
- data/lib/fog/{google/requests/storage → storage/requests/google}/copy_object.rb +1 -1
- data/lib/fog/{google/requests/storage → storage/requests/google}/delete_bucket.rb +0 -0
- data/lib/fog/{google/requests/storage → storage/requests/google}/delete_object.rb +0 -0
- data/lib/fog/{google/requests/storage → storage/requests/google}/get_bucket.rb +1 -1
- data/lib/fog/{google/requests/storage → storage/requests/google}/get_bucket_acl.rb +1 -1
- data/lib/fog/{google/requests/storage → storage/requests/google}/get_object.rb +0 -0
- data/lib/fog/{google/requests/storage → storage/requests/google}/get_object_acl.rb +1 -1
- data/lib/fog/{google/requests/storage → storage/requests/google}/get_object_torrent.rb +0 -0
- data/lib/fog/{google/requests/storage → storage/requests/google}/get_object_url.rb +0 -0
- data/lib/fog/{google/requests/storage → storage/requests/google}/get_service.rb +1 -1
- data/lib/fog/{google/requests/storage → storage/requests/google}/head_object.rb +0 -0
- data/lib/fog/{google/requests/storage → storage/requests/google}/put_bucket.rb +0 -0
- data/lib/fog/{google/requests/storage → storage/requests/google}/put_bucket_acl.rb +0 -0
- data/lib/fog/{google/requests/storage → storage/requests/google}/put_object.rb +0 -0
- data/lib/fog/{google/requests/storage → storage/requests/google}/put_object_url.rb +0 -0
- data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/delete_container.rb +0 -0
- data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/delete_object.rb +0 -0
- data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/get_container.rb +0 -0
- data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/get_containers.rb +0 -0
- data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/get_object.rb +0 -0
- data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/head_container.rb +0 -0
- data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/head_containers.rb +0 -0
- data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/head_object.rb +0 -0
- data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/put_container.rb +0 -0
- data/lib/fog/{rackspace/requests/storage → storage/requests/rackspace}/put_object.rb +0 -0
- data/lib/fog/terremark.rb +1 -1
- data/lib/fog/terremark/ecloud.rb +4 -0
- data/lib/fog/terremark/vcloud.rb +4 -0
- data/lib/fog/vcloud.rb +1 -1
- data/lib/fog/vcloud/terremark/ecloud.rb +4 -4
- data/lib/fog/vcloud/terremark/vcloud.rb +17 -0
- data/spec/aws/models/compute/address_spec.rb +1 -1
- data/spec/aws/models/compute/addresses_spec.rb +1 -1
- data/spec/aws/models/compute/key_pair_spec.rb +1 -1
- data/spec/aws/models/compute/key_pairs_spec.rb +1 -1
- data/spec/aws/models/compute/security_group_spec.rb +1 -1
- data/spec/aws/models/compute/security_groups_spec.rb +1 -1
- data/spec/aws/models/compute/server_spec.rb +1 -1
- data/spec/aws/models/compute/snapshot_spec.rb +1 -1
- data/spec/aws/models/compute/snapshots_spec.rb +1 -1
- data/spec/aws/models/compute/volume_spec.rb +1 -1
- data/spec/aws/models/compute/volumes_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- data/spec/vcloud/bin_spec.rb +1 -1
- data/spec/vcloud/models/vdc_spec.rb +1 -1
- data/spec/vcloud/requests/get_network_spec.rb +1 -1
- data/spec/vcloud/requests/get_organization_spec.rb +1 -1
- data/spec/vcloud/requests/get_vdc_spec.rb +1 -1
- data/spec/vcloud/requests/get_versions_spec.rb +1 -1
- data/spec/vcloud/requests/login_spec.rb +1 -1
- data/spec/vcloud/spec_helper.rb +3 -4
- data/spec/vcloud/terremark/ecloud/models/backup_internet_service_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/backup_internet_services_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/internet_service_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/internet_services_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/ip_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/ips_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/network_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/networks_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/node_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/nodes_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/public_ip_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/public_ips_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/server_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/vdc_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/models/vdcs_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/add_backup_internet_service_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/add_internet_service_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/add_node_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/configure_internet_service_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/configure_network_ip_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/configure_node_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/configure_vapp_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/delete_internet_service_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/delete_node_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/delete_vapp_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_catalog_item_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_catalog_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_customization_options_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_internet_services_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_network_ip_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_network_ips_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_network_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_node_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_nodes_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_public_ip_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_public_ips_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_vapp_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_vdc_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/instantiate_vapp_template_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/login_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/power_off_spec.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/power_on_spec.rb +1 -1
- data/spec/vcloud/vcloud_spec.rb +1 -1
- data/tests/compute/requests/brightbox/helper.rb +2 -0
- data/tests/compute/requests/terremark_ecloud/catalog_tests.rb +47 -0
- data/tests/compute/requests/terremark_ecloud/helper.rb +45 -0
- data/tests/compute/requests/terremark_ecloud/network_tests.rb +30 -0
- data/tests/compute/requests/terremark_ecloud/organization_tests.rb +23 -0
- data/tests/compute/requests/terremark_ecloud/vdc_tests.rb +60 -0
- data/tests/helper.rb +30 -3
- data/tests/helpers/formats_helper.rb +3 -1
- metadata +508 -482
- data/lib/fog/aws/ec2.rb +0 -15
- data/lib/fog/aws/s3.rb +0 -15
- data/lib/fog/brightbox.rb +0 -9
- data/lib/fog/rackspace/files.rb +0 -15
- data/lib/fog/rackspace/servers.rb +0 -15
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fog (0.4.
|
4
|
+
fog (0.4.1)
|
5
5
|
builder
|
6
|
-
excon (>= 0.
|
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.
|
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.
|
38
|
+
excon (>= 0.4.0)
|
39
39
|
fog!
|
40
40
|
formatador (>= 0.0.16)
|
41
41
|
json
|
data/README.rdoc
CHANGED
@@ -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.
|
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
data/fog.gemspec
CHANGED
@@ -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.
|
11
|
-
s.date = '2011-01-
|
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
|
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.
|
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.
|
6
|
+
VERSION = '0.4.1'
|
7
7
|
end
|
8
8
|
|
9
9
|
end
|
10
10
|
|
11
|
-
|
12
|
-
require 'fog/
|
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
|
76
|
-
require 'fog/bluebox
|
77
|
-
require 'fog/brightbox
|
78
|
-
require 'fog/go_grid
|
79
|
-
require 'fog/google
|
80
|
-
require 'fog/linode
|
81
|
-
require 'fog/local
|
82
|
-
require 'fog/new_servers
|
83
|
-
require 'fog/rackspace
|
84
|
-
require 'fog/slicehost
|
85
|
-
require 'fog/terremark
|
86
|
-
require 'fog/
|
87
|
-
require 'fog/
|
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
|
-
|
31
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
56
|
+
Fog::Storage.new(:provider => 'AWS')
|
57
|
+
when :storage
|
58
|
+
Fog::Storage.new(:provider => 'AWS')
|
46
59
|
else
|
47
|
-
|
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
|
-
|
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] =
|
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
|
-
|
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] =
|
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
|
-
|
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
|
-
|
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
|
-
|
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[:
|
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
|
-
|
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
|
-
|
37
|
+
Fog::Compute.new(:provider => Rackspace)
|
38
|
+
when :storage
|
39
|
+
Fog::Storage.new(:provider => 'Rackspace')
|
33
40
|
else
|
34
|
-
|
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] =
|
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
|
File without changes
|
@@ -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] =
|
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
|
data/lib/fog/cdn.rb
ADDED
@@ -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
|