fog 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +3 -1
- data/RELEASE.md +39 -0
- data/Rakefile +39 -14
- data/bin/fog +4 -0
- data/changelog.txt +430 -0
- data/docs/storage/aws.markdown +21 -0
- data/fog.gemspec +2 -2
- data/lib/fog/atmos/models/storage/directories.rb +2 -2
- data/lib/fog/atmos/models/storage/directory.rb +11 -11
- data/lib/fog/atmos/models/storage/file.rb +8 -8
- data/lib/fog/atmos/models/storage/files.rb +3 -3
- data/lib/fog/aws.rb +1 -0
- data/lib/fog/aws/compute.rb +2 -1
- data/lib/fog/aws/dynamodb.rb +1 -1
- data/lib/fog/aws/elasticache.rb +3 -1
- data/lib/fog/aws/models/auto_scaling/activities.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/activity.rb +1 -1
- data/lib/fog/aws/models/auto_scaling/configuration.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/configurations.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/group.rb +12 -12
- data/lib/fog/aws/models/auto_scaling/groups.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/instance.rb +5 -5
- data/lib/fog/aws/models/auto_scaling/instances.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/policies.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/policy.rb +2 -2
- data/lib/fog/aws/models/beanstalk/application.rb +7 -7
- data/lib/fog/aws/models/beanstalk/applications.rb +2 -2
- data/lib/fog/aws/models/beanstalk/environment.rb +10 -10
- data/lib/fog/aws/models/beanstalk/environments.rb +2 -2
- data/lib/fog/aws/models/beanstalk/events.rb +1 -1
- data/lib/fog/aws/models/beanstalk/template.rb +5 -5
- data/lib/fog/aws/models/beanstalk/templates.rb +3 -3
- data/lib/fog/aws/models/beanstalk/version.rb +6 -6
- data/lib/fog/aws/models/beanstalk/versions.rb +2 -2
- data/lib/fog/aws/models/cdn/distribution.rb +4 -4
- data/lib/fog/aws/models/cdn/distributions.rb +2 -2
- data/lib/fog/aws/models/cdn/invalidation.rb +2 -2
- data/lib/fog/aws/models/cdn/invalidations.rb +2 -2
- data/lib/fog/aws/models/cdn/streaming_distribution.rb +3 -3
- data/lib/fog/aws/models/cdn/streaming_distributions.rb +2 -2
- data/lib/fog/aws/models/cloud_watch/alarm.rb +2 -2
- data/lib/fog/aws/models/cloud_watch/alarm_data.rb +9 -9
- data/lib/fog/aws/models/cloud_watch/alarm_datum.rb +3 -3
- data/lib/fog/aws/models/cloud_watch/alarm_histories.rb +1 -1
- data/lib/fog/aws/models/cloud_watch/alarms.rb +7 -7
- data/lib/fog/aws/models/cloud_watch/metric_statistic.rb +2 -2
- data/lib/fog/aws/models/cloud_watch/metric_statistics.rb +3 -3
- data/lib/fog/aws/models/cloud_watch/metrics.rb +27 -7
- data/lib/fog/aws/models/compute/address.rb +9 -9
- data/lib/fog/aws/models/compute/addresses.rb +2 -2
- data/lib/fog/aws/models/compute/dhcp_option.rb +3 -3
- data/lib/fog/aws/models/compute/dhcp_options.rb +2 -2
- data/lib/fog/aws/models/compute/flavors.rb +1 -1
- data/lib/fog/aws/models/compute/image.rb +2 -2
- data/lib/fog/aws/models/compute/images.rb +5 -5
- data/lib/fog/aws/models/compute/internet_gateway.rb +4 -4
- data/lib/fog/aws/models/compute/internet_gateways.rb +2 -2
- data/lib/fog/aws/models/compute/key_pair.rb +4 -4
- data/lib/fog/aws/models/compute/key_pairs.rb +2 -2
- data/lib/fog/aws/models/compute/network_interface.rb +3 -3
- data/lib/fog/aws/models/compute/network_interfaces.rb +2 -2
- data/lib/fog/aws/models/compute/security_group.rb +7 -7
- data/lib/fog/aws/models/compute/security_groups.rb +3 -3
- data/lib/fog/aws/models/compute/server.rb +20 -16
- data/lib/fog/aws/models/compute/servers.rb +6 -6
- data/lib/fog/aws/models/compute/snapshot.rb +4 -4
- data/lib/fog/aws/models/compute/snapshots.rb +3 -3
- data/lib/fog/aws/models/compute/spot_request.rb +18 -8
- data/lib/fog/aws/models/compute/spot_requests.rb +11 -11
- data/lib/fog/aws/models/compute/subnet.rb +3 -3
- data/lib/fog/aws/models/compute/subnets.rb +2 -2
- data/lib/fog/aws/models/compute/tag.rb +2 -2
- data/lib/fog/aws/models/compute/tags.rb +3 -3
- data/lib/fog/aws/models/compute/volume.rb +12 -12
- data/lib/fog/aws/models/compute/volumes.rb +2 -2
- data/lib/fog/aws/models/compute/vpc.rb +2 -2
- data/lib/fog/aws/models/compute/vpcs.rb +2 -2
- data/lib/fog/aws/models/dns/record.rb +4 -4
- data/lib/fog/aws/models/dns/records.rb +3 -3
- data/lib/fog/aws/models/dns/zone.rb +3 -3
- data/lib/fog/aws/models/dns/zones.rb +2 -2
- data/lib/fog/aws/models/elasticache/cluster.rb +2 -2
- data/lib/fog/aws/models/elasticache/clusters.rb +2 -2
- data/lib/fog/aws/models/elasticache/parameter_group.rb +2 -2
- data/lib/fog/aws/models/elasticache/parameter_groups.rb +2 -2
- data/lib/fog/aws/models/elasticache/security_group.rb +4 -4
- data/lib/fog/aws/models/elasticache/security_groups.rb +2 -2
- data/lib/fog/aws/models/elb/listener.rb +2 -2
- data/lib/fog/aws/models/elb/load_balancer.rb +19 -19
- data/lib/fog/aws/models/elb/load_balancers.rb +2 -2
- data/lib/fog/aws/models/elb/policy.rb +3 -3
- data/lib/fog/aws/models/glacier/archive.rb +7 -7
- data/lib/fog/aws/models/glacier/job.rb +2 -2
- data/lib/fog/aws/models/glacier/jobs.rb +3 -3
- data/lib/fog/aws/models/glacier/vault.rb +7 -7
- data/lib/fog/aws/models/glacier/vaults.rb +2 -2
- data/lib/fog/aws/models/iam/access_key.rb +8 -8
- data/lib/fog/aws/models/iam/access_keys.rb +7 -7
- data/lib/fog/aws/models/iam/policies.rb +10 -10
- data/lib/fog/aws/models/iam/policy.rb +8 -8
- data/lib/fog/aws/models/iam/user.rb +10 -10
- data/lib/fog/aws/models/iam/users.rb +2 -2
- data/lib/fog/aws/models/rds/parameter.rb +2 -2
- data/lib/fog/aws/models/rds/parameter_group.rb +10 -10
- data/lib/fog/aws/models/rds/parameter_groups.rb +3 -3
- data/lib/fog/aws/models/rds/parameters.rb +2 -2
- data/lib/fog/aws/models/rds/security_group.rb +4 -4
- data/lib/fog/aws/models/rds/security_groups.rb +2 -2
- data/lib/fog/aws/models/rds/server.rb +10 -10
- data/lib/fog/aws/models/rds/servers.rb +3 -3
- data/lib/fog/aws/models/rds/snapshot.rb +3 -3
- data/lib/fog/aws/models/rds/snapshots.rb +3 -3
- data/lib/fog/aws/models/rds/subnet_groups.rb +2 -2
- data/lib/fog/aws/models/storage/directories.rb +2 -2
- data/lib/fog/aws/models/storage/directory.rb +13 -13
- data/lib/fog/aws/models/storage/file.rb +106 -14
- data/lib/fog/aws/models/storage/files.rb +10 -10
- data/lib/fog/aws/models/storage/version.rb +2 -2
- data/lib/fog/aws/models/storage/versions.rb +3 -3
- data/lib/fog/aws/parsers/compute/copy_snapshot.rb +22 -0
- data/lib/fog/aws/parsers/compute/describe_instances.rb +8 -1
- data/lib/fog/aws/parsers/compute/spot_instance_requests.rb +5 -3
- data/lib/fog/aws/parsers/elasticache/describe_reserved_cache_nodes.rb +37 -0
- data/lib/fog/aws/parsers/storage/cors_configuration.rb +41 -0
- data/lib/fog/aws/parsers/storage/get_bucket_lifecycle.rb +45 -11
- data/lib/fog/aws/requests/auto_scaling/resume_processes.rb +10 -1
- data/lib/fog/aws/requests/auto_scaling/suspend_processes.rb +7 -2
- data/lib/fog/aws/requests/cloud_formation/create_stack.rb +17 -0
- data/lib/fog/aws/requests/cloud_watch/list_metrics.rb +27 -0
- data/lib/fog/aws/requests/compute/copy_snapshot.rb +58 -0
- data/lib/fog/aws/requests/elasticache/describe_reserved_cache_nodes.rb +42 -0
- data/lib/fog/aws/requests/storage/abort_multipart_upload.rb +5 -7
- data/lib/fog/aws/requests/storage/complete_multipart_upload.rb +12 -16
- data/lib/fog/aws/requests/storage/copy_object.rb +19 -20
- data/lib/fog/aws/requests/storage/cors_utils.rb +41 -0
- data/lib/fog/aws/requests/storage/delete_bucket.rb +4 -7
- data/lib/fog/aws/requests/storage/delete_bucket_cors.rb +29 -0
- data/lib/fog/aws/requests/storage/delete_bucket_lifecycle.rb +4 -7
- data/lib/fog/aws/requests/storage/delete_bucket_policy.rb +5 -8
- data/lib/fog/aws/requests/storage/delete_bucket_website.rb +4 -7
- data/lib/fog/aws/requests/storage/delete_multiple_objects.rb +24 -29
- data/lib/fog/aws/requests/storage/delete_object.rb +5 -8
- data/lib/fog/aws/requests/storage/get_bucket.rb +25 -28
- data/lib/fog/aws/requests/storage/get_bucket_acl.rb +15 -18
- data/lib/fog/aws/requests/storage/get_bucket_cors.rb +65 -0
- data/lib/fog/aws/requests/storage/get_bucket_lifecycle.rb +9 -12
- data/lib/fog/aws/requests/storage/get_bucket_location.rb +5 -8
- data/lib/fog/aws/requests/storage/get_bucket_logging.rb +15 -18
- data/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +37 -43
- data/lib/fog/aws/requests/storage/get_bucket_policy.rb +4 -7
- data/lib/fog/aws/requests/storage/get_bucket_versioning.rb +6 -9
- data/lib/fog/aws/requests/storage/get_bucket_website.rb +9 -11
- data/lib/fog/aws/requests/storage/get_object.rb +17 -20
- data/lib/fog/aws/requests/storage/get_object_acl.rb +18 -21
- data/lib/fog/aws/requests/storage/get_object_http_url.rb +6 -9
- data/lib/fog/aws/requests/storage/get_object_https_url.rb +6 -9
- data/lib/fog/aws/requests/storage/get_object_torrent.rb +15 -18
- data/lib/fog/aws/requests/storage/get_object_url.rb +7 -10
- data/lib/fog/aws/requests/storage/get_request_payment.rb +5 -8
- data/lib/fog/aws/requests/storage/get_service.rb +9 -11
- data/lib/fog/aws/requests/storage/head_object.rb +19 -22
- data/lib/fog/aws/requests/storage/initiate_multipart_upload.rb +17 -20
- data/lib/fog/aws/requests/storage/list_multipart_uploads.rb +27 -32
- data/lib/fog/aws/requests/storage/list_parts.rb +25 -29
- data/lib/fog/aws/requests/storage/post_object_hidden_fields.rb +15 -17
- data/lib/fog/aws/requests/storage/put_bucket.rb +8 -11
- data/lib/fog/aws/requests/storage/put_bucket_acl.rb +15 -17
- data/lib/fog/aws/requests/storage/put_bucket_cors.rb +49 -0
- data/lib/fog/aws/requests/storage/put_bucket_lifecycle.rb +44 -15
- data/lib/fog/aws/requests/storage/put_bucket_logging.rb +13 -15
- data/lib/fog/aws/requests/storage/put_bucket_policy.rb +3 -5
- data/lib/fog/aws/requests/storage/put_bucket_versioning.rb +3 -5
- data/lib/fog/aws/requests/storage/put_bucket_website.rb +5 -7
- data/lib/fog/aws/requests/storage/put_object.rb +19 -22
- data/lib/fog/aws/requests/storage/put_object_acl.rb +17 -19
- data/lib/fog/aws/requests/storage/put_object_url.rb +6 -9
- data/lib/fog/aws/requests/storage/put_request_payment.rb +3 -5
- data/lib/fog/aws/requests/storage/upload_part.rb +12 -15
- data/lib/fog/aws/storage.rb +8 -1
- data/lib/fog/bin/rackspace.rb +7 -0
- data/lib/fog/bluebox/models/compute/flavors.rb +2 -2
- data/lib/fog/bluebox/models/compute/image.rb +8 -8
- data/lib/fog/bluebox/models/compute/images.rb +2 -2
- data/lib/fog/bluebox/models/compute/locations.rb +2 -2
- data/lib/fog/bluebox/models/compute/server.rb +10 -10
- data/lib/fog/bluebox/models/compute/servers.rb +2 -2
- data/lib/fog/bluebox/models/dns/record.rb +3 -3
- data/lib/fog/bluebox/models/dns/records.rb +2 -2
- data/lib/fog/bluebox/models/dns/zone.rb +3 -3
- data/lib/fog/bluebox/models/dns/zones.rb +2 -2
- data/lib/fog/bluebox/requests/compute/create_block.rb +2 -2
- data/lib/fog/brightbox/compute.rb +56 -9
- data/lib/fog/brightbox/models/compute/account.rb +1 -1
- data/lib/fog/brightbox/models/compute/accounts.rb +3 -3
- data/lib/fog/brightbox/models/compute/api_client.rb +4 -4
- data/lib/fog/brightbox/models/compute/api_clients.rb +2 -2
- data/lib/fog/brightbox/models/compute/application.rb +2 -2
- data/lib/fog/brightbox/models/compute/applications.rb +3 -3
- data/lib/fog/brightbox/models/compute/cloud_ip.rb +4 -3
- data/lib/fog/brightbox/models/compute/cloud_ips.rb +4 -4
- data/lib/fog/brightbox/models/compute/firewall_policies.rb +3 -3
- data/lib/fog/brightbox/models/compute/firewall_policy.rb +5 -5
- data/lib/fog/brightbox/models/compute/firewall_rule.rb +3 -3
- data/lib/fog/brightbox/models/compute/firewall_rules.rb +2 -2
- data/lib/fog/brightbox/models/compute/flavors.rb +3 -3
- data/lib/fog/brightbox/models/compute/image.rb +3 -3
- data/lib/fog/brightbox/models/compute/images.rb +2 -2
- data/lib/fog/brightbox/models/compute/load_balancer.rb +3 -3
- data/lib/fog/brightbox/models/compute/load_balancers.rb +2 -2
- data/lib/fog/brightbox/models/compute/server.rb +23 -17
- data/lib/fog/brightbox/models/compute/server_group.rb +6 -6
- data/lib/fog/brightbox/models/compute/server_groups.rb +3 -3
- data/lib/fog/brightbox/models/compute/servers.rb +3 -3
- data/lib/fog/brightbox/models/compute/user.rb +1 -1
- data/lib/fog/brightbox/models/compute/users.rb +3 -3
- data/lib/fog/brightbox/models/compute/zones.rb +3 -3
- data/lib/fog/brightbox/requests/compute/activate_console_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/add_servers_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_api_client.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_firewall_policy.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_firewall_rule.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_image.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_api_client.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_firewall_policy.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_firewall_rule.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_image.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_account.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_api_client.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_authenticated_user.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_firewall_policy.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_firewall_rule.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_image.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_interface.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_scoped_account.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_server_type.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_user.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_zone.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_accounts.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_api_clients.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_applications.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_cloud_ips.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_firewall_policies.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_images.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_load_balancers.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_server_groups.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_server_types.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_servers.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_users.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_zones.rb +1 -1
- data/lib/fog/brightbox/requests/compute/map_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/move_servers_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/remove_firewall_policy.rb +1 -1
- data/lib/fog/brightbox/requests/compute/remove_listeners_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/remove_nodes_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/remove_servers_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb +1 -1
- data/lib/fog/brightbox/requests/compute/reset_ftp_password_scoped_account.rb +1 -1
- data/lib/fog/brightbox/requests/compute/reset_secret_api_client.rb +1 -1
- data/lib/fog/brightbox/requests/compute/reset_secret_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/shutdown_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/snapshot_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/start_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/stop_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/unmap_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_account.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_api_client.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_firewall_rule.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_image.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_scoped_account.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_user.rb +1 -1
- data/lib/fog/clodo/models/compute/images.rb +2 -2
- data/lib/fog/clodo/models/compute/server.rb +7 -7
- data/lib/fog/clodo/models/compute/servers.rb +2 -2
- data/lib/fog/cloudstack/models/compute/flavors.rb +2 -2
- data/lib/fog/cloudstack/models/compute/image.rb +2 -2
- data/lib/fog/cloudstack/models/compute/images.rb +2 -2
- data/lib/fog/cloudstack/models/compute/job.rb +2 -2
- data/lib/fog/cloudstack/models/compute/jobs.rb +2 -2
- data/lib/fog/cloudstack/models/compute/security_group.rb +3 -3
- data/lib/fog/cloudstack/models/compute/security_group_rule.rb +5 -5
- data/lib/fog/cloudstack/models/compute/security_group_rules.rb +1 -1
- data/lib/fog/cloudstack/models/compute/security_groups.rb +2 -2
- data/lib/fog/cloudstack/models/compute/server.rb +11 -11
- data/lib/fog/cloudstack/models/compute/servers.rb +2 -2
- data/lib/fog/cloudstack/models/compute/volume.rb +8 -8
- data/lib/fog/cloudstack/models/compute/volumes.rb +2 -2
- data/lib/fog/cloudstack/models/compute/zone.rb +1 -1
- data/lib/fog/cloudstack/models/compute/zones.rb +2 -2
- data/lib/fog/compute.rb +2 -1
- data/lib/fog/core/attributes.rb +20 -3
- data/lib/fog/core/collection.rb +17 -6
- data/lib/fog/core/deprecated_connection_accessors.rb +41 -0
- data/lib/fog/core/errors.rb +2 -0
- data/lib/fog/core/json.rb +4 -16
- data/lib/fog/core/logger.rb +2 -0
- data/lib/fog/core/model.rb +11 -1
- data/lib/fog/core/parser.rb +13 -0
- data/lib/fog/core/service.rb +1 -1
- data/lib/fog/core/wait_for.rb +1 -1
- data/lib/fog/dnsimple/models/dns/record.rb +4 -4
- data/lib/fog/dnsimple/models/dns/records.rb +2 -2
- data/lib/fog/dnsimple/models/dns/zone.rb +3 -3
- data/lib/fog/dnsimple/models/dns/zones.rb +2 -2
- data/lib/fog/dnsmadeeasy/models/dns/record.rb +5 -5
- data/lib/fog/dnsmadeeasy/models/dns/records.rb +2 -2
- data/lib/fog/dnsmadeeasy/models/dns/zone.rb +3 -3
- data/lib/fog/dnsmadeeasy/models/dns/zones.rb +2 -2
- data/lib/fog/dynect/models/dns/record.rb +3 -3
- data/lib/fog/dynect/models/dns/records.rb +2 -2
- data/lib/fog/dynect/models/dns/zone.rb +4 -4
- data/lib/fog/dynect/models/dns/zones.rb +2 -2
- data/lib/fog/ecloud.rb +19 -5
- data/lib/fog/ecloud/compute.rb +663 -351
- data/lib/fog/ecloud/generate_collection.rb +3 -3
- data/lib/fog/ecloud/models/compute/admin_organization.rb +14 -10
- data/lib/fog/ecloud/models/compute/admin_organizations.rb +1 -6
- data/lib/fog/ecloud/models/compute/api_keys.rb +2 -2
- data/lib/fog/ecloud/models/compute/association.rb +3 -3
- data/lib/fog/ecloud/models/compute/associations.rb +2 -2
- data/lib/fog/ecloud/models/compute/authentication_levels.rb +2 -2
- data/lib/fog/ecloud/models/compute/backup_internet_service.rb +7 -7
- data/lib/fog/ecloud/models/compute/backup_internet_services.rb +3 -3
- data/lib/fog/ecloud/models/compute/catalog.rb +2 -2
- data/lib/fog/ecloud/models/compute/catalog_configurations.rb +2 -2
- data/lib/fog/ecloud/models/compute/catalog_item.rb +1 -1
- data/lib/fog/ecloud/models/compute/compute_pool.rb +27 -15
- data/lib/fog/ecloud/models/compute/compute_pools.rb +2 -2
- data/lib/fog/ecloud/models/compute/cpu_usage_detail_summary.rb +2 -2
- data/lib/fog/ecloud/models/compute/detached_disk.rb +27 -0
- data/lib/fog/ecloud/models/compute/detached_disks.rb +31 -0
- data/lib/fog/ecloud/models/compute/environment.rb +27 -20
- data/lib/fog/ecloud/models/compute/environments.rb +2 -2
- data/lib/fog/ecloud/models/compute/firewall_acl.rb +1 -1
- data/lib/fog/ecloud/models/compute/firewall_acls.rb +2 -2
- data/lib/fog/ecloud/models/compute/group.rb +8 -6
- data/lib/fog/ecloud/models/compute/groups.rb +17 -6
- data/lib/fog/ecloud/models/compute/guest_processes.rb +2 -2
- data/lib/fog/ecloud/models/compute/hardware_configuration.rb +4 -4
- data/lib/fog/ecloud/models/compute/hardware_configurations.rb +2 -2
- data/lib/fog/ecloud/models/compute/internet_service.rb +35 -29
- data/lib/fog/ecloud/models/compute/internet_services.rb +11 -8
- data/lib/fog/ecloud/models/compute/ip_address.rb +17 -3
- data/lib/fog/ecloud/models/compute/ip_addresses.rb +7 -2
- data/lib/fog/ecloud/models/compute/layout.rb +1 -1
- data/lib/fog/ecloud/models/compute/layouts.rb +2 -2
- data/lib/fog/ecloud/models/compute/location.rb +1 -1
- data/lib/fog/ecloud/models/compute/locations.rb +2 -2
- data/lib/fog/ecloud/models/compute/login_banners.rb +2 -2
- data/lib/fog/ecloud/models/compute/memory_usage_detail_summary.rb +2 -2
- data/lib/fog/ecloud/models/compute/monitor.rb +4 -4
- data/lib/fog/ecloud/models/compute/monitors.rb +2 -2
- data/lib/fog/ecloud/models/compute/network.rb +22 -12
- data/lib/fog/ecloud/models/compute/networks.rb +9 -5
- data/lib/fog/ecloud/models/compute/node.rb +12 -6
- data/lib/fog/ecloud/models/compute/nodes.rb +7 -4
- data/lib/fog/ecloud/models/compute/operating_system_families.rb +2 -2
- data/lib/fog/ecloud/models/compute/operating_system_family.rb +1 -1
- data/lib/fog/ecloud/models/compute/operating_systems.rb +1 -1
- data/lib/fog/ecloud/models/compute/organization.rb +17 -17
- data/lib/fog/ecloud/models/compute/organizations.rb +3 -3
- data/lib/fog/ecloud/models/compute/password_complexity_rules.rb +2 -2
- data/lib/fog/ecloud/models/compute/physical_devices.rb +2 -2
- data/lib/fog/ecloud/models/compute/public_ip.rb +2 -2
- data/lib/fog/ecloud/models/compute/public_ips.rb +8 -5
- data/lib/fog/ecloud/models/compute/rnat.rb +2 -2
- data/lib/fog/ecloud/models/compute/rnats.rb +2 -2
- data/lib/fog/ecloud/models/compute/roles.rb +2 -2
- data/lib/fog/ecloud/models/compute/row.rb +10 -7
- data/lib/fog/ecloud/models/compute/rows.rb +9 -6
- data/lib/fog/ecloud/models/compute/server.rb +139 -93
- data/lib/fog/ecloud/models/compute/server_configuration_options.rb +2 -2
- data/lib/fog/ecloud/models/compute/servers.rb +18 -15
- data/lib/fog/ecloud/models/compute/ssh_key.rb +1 -1
- data/lib/fog/ecloud/models/compute/ssh_keys.rb +2 -2
- data/lib/fog/ecloud/models/compute/storage_usage_detail_summary.rb +2 -2
- data/lib/fog/ecloud/models/compute/support_tickets.rb +2 -2
- data/lib/fog/ecloud/models/compute/tags.rb +2 -2
- data/lib/fog/ecloud/models/compute/task.rb +3 -0
- data/lib/fog/ecloud/models/compute/tasks.rb +3 -3
- data/lib/fog/ecloud/models/compute/template.rb +8 -9
- data/lib/fog/ecloud/models/compute/templates.rb +2 -2
- data/lib/fog/ecloud/models/compute/trusted_network_group.rb +5 -5
- data/lib/fog/ecloud/models/compute/trusted_network_groups.rb +2 -2
- data/lib/fog/ecloud/models/compute/user.rb +2 -2
- data/lib/fog/ecloud/models/compute/users.rb +2 -2
- data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ip.rb +32 -0
- data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ips.rb +27 -0
- data/lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb +1 -2
- data/lib/fog/ecloud/requests/compute/get_admin_organization.rb +14 -0
- data/lib/fog/ecloud/requests/compute/get_compute_pool.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_compute_pools.rb +21 -0
- data/lib/fog/ecloud/requests/compute/get_detached_disk.rb +21 -0
- data/lib/fog/ecloud/requests/compute/get_detached_disks.rb +33 -0
- data/lib/fog/ecloud/requests/compute/get_environment.rb +21 -0
- data/lib/fog/ecloud/requests/compute/get_group.rb +8 -1
- data/lib/fog/ecloud/requests/compute/get_groups.rb +8 -1
- data/lib/fog/ecloud/requests/compute/get_hardware_configuration.rb +19 -0
- data/lib/fog/ecloud/requests/compute/get_hardware_configurations.rb +4 -0
- data/lib/fog/ecloud/requests/compute/get_internet_service.rb +12 -0
- data/lib/fog/ecloud/requests/compute/get_internet_services.rb +8 -0
- data/lib/fog/ecloud/requests/compute/get_ip_address.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_layout.rb +8 -1
- data/lib/fog/ecloud/requests/compute/get_layouts.rb +8 -1
- data/lib/fog/ecloud/requests/compute/get_network.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_networks.rb +20 -0
- data/lib/fog/ecloud/requests/compute/get_node.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_nodes.rb +9 -0
- data/lib/fog/ecloud/requests/compute/get_operating_system.rb +14 -0
- data/lib/fog/ecloud/requests/compute/get_operating_system_families.rb +20 -0
- data/lib/fog/ecloud/requests/compute/get_organization.rb +14 -0
- data/lib/fog/ecloud/requests/compute/get_organizations.rb +14 -2
- data/lib/fog/ecloud/requests/compute/get_public_ip.rb +11 -1
- data/lib/fog/ecloud/requests/compute/get_public_ips.rb +22 -0
- data/lib/fog/ecloud/requests/compute/get_row.rb +8 -1
- data/lib/fog/ecloud/requests/compute/get_rows.rb +2 -1
- data/lib/fog/ecloud/requests/compute/get_server.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_servers.rb +32 -1
- data/lib/fog/ecloud/requests/compute/get_ssh_key.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_ssh_keys.rb +20 -0
- data/lib/fog/ecloud/requests/compute/get_task.rb +4 -2
- data/lib/fog/ecloud/requests/compute/get_template.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_templates.rb +38 -0
- data/lib/fog/ecloud/requests/compute/get_virtual_machine_assigned_ips.rb +44 -0
- data/lib/fog/ecloud/requests/compute/groups_delete.rb +16 -1
- data/lib/fog/ecloud/requests/compute/internet_service_create.rb +36 -1
- data/lib/fog/ecloud/requests/compute/internet_service_delete.rb +23 -0
- data/lib/fog/ecloud/requests/compute/node_service_create.rb +49 -1
- data/lib/fog/ecloud/requests/compute/node_service_delete.rb +24 -0
- data/lib/fog/ecloud/requests/compute/rows_delete.rb +11 -1
- data/lib/fog/ecloud/requests/compute/virtual_machine_attach_disk.rb +62 -0
- data/lib/fog/ecloud/requests/compute/virtual_machine_create_from_template.rb +136 -16
- data/lib/fog/ecloud/requests/compute/virtual_machine_delete.rb +36 -1
- data/lib/fog/ecloud/requests/compute/virtual_machine_detach_disk.rb +71 -0
- data/lib/fog/ecloud/requests/compute/virtual_machine_edit_assigned_ips.rb +82 -0
- data/lib/fog/ecloud/requests/compute/virtual_machine_edit_hardware_configuration.rb +27 -3
- data/lib/fog/ecloud/requests/compute/virtual_machine_import.rb +120 -6
- data/lib/fog/glesys/models/compute/ip.rb +7 -7
- data/lib/fog/glesys/models/compute/ips.rb +7 -7
- data/lib/fog/glesys/models/compute/server.rb +6 -6
- data/lib/fog/glesys/models/compute/servers.rb +4 -4
- data/lib/fog/glesys/models/compute/template.rb +1 -1
- data/lib/fog/glesys/models/compute/templates.rb +2 -2
- data/lib/fog/go_grid/models/compute/image.rb +3 -3
- data/lib/fog/go_grid/models/compute/images.rb +2 -2
- data/lib/fog/go_grid/models/compute/password.rb +5 -5
- data/lib/fog/go_grid/models/compute/passwords.rb +3 -3
- data/lib/fog/go_grid/models/compute/server.rb +4 -4
- data/lib/fog/go_grid/models/compute/servers.rb +2 -2
- data/lib/fog/google/models/storage/directories.rb +2 -2
- data/lib/fog/google/models/storage/directory.rb +4 -4
- data/lib/fog/google/models/storage/file.rb +5 -5
- data/lib/fog/google/models/storage/files.rb +4 -4
- data/lib/fog/hp.rb +6 -3
- data/lib/fog/hp/models/compute/address.rb +8 -8
- data/lib/fog/hp/models/compute/addresses.rb +2 -2
- data/lib/fog/hp/models/compute/flavors.rb +2 -2
- data/lib/fog/hp/models/compute/image.rb +2 -2
- data/lib/fog/hp/models/compute/images.rb +2 -2
- data/lib/fog/hp/models/compute/key_pair.rb +3 -3
- data/lib/fog/hp/models/compute/key_pairs.rb +2 -2
- data/lib/fog/hp/models/compute/security_group.rb +4 -4
- data/lib/fog/hp/models/compute/security_groups.rb +3 -3
- data/lib/fog/hp/models/compute/server.rb +15 -15
- data/lib/fog/hp/models/compute/servers.rb +2 -2
- data/lib/fog/hp/models/storage/directories.rb +3 -3
- data/lib/fog/hp/models/storage/directory.rb +18 -18
- data/lib/fog/hp/models/storage/file.rb +4 -4
- data/lib/fog/hp/models/storage/files.rb +2 -2
- data/lib/fog/ibm/models/compute/address.rb +2 -2
- data/lib/fog/ibm/models/compute/addresses.rb +2 -2
- data/lib/fog/ibm/models/compute/image.rb +3 -3
- data/lib/fog/ibm/models/compute/images.rb +2 -2
- data/lib/fog/ibm/models/compute/key.rb +2 -2
- data/lib/fog/ibm/models/compute/keys.rb +3 -3
- data/lib/fog/ibm/models/compute/locations.rb +2 -2
- data/lib/fog/ibm/models/compute/server.rb +12 -12
- data/lib/fog/ibm/models/compute/servers.rb +2 -2
- data/lib/fog/ibm/models/compute/vlans.rb +2 -2
- data/lib/fog/ibm/models/storage/offerings.rb +1 -1
- data/lib/fog/ibm/models/storage/volume.rb +5 -5
- data/lib/fog/ibm/models/storage/volumes.rb +2 -2
- data/lib/fog/identity.rb +3 -0
- data/lib/fog/joyent/models/compute/flavors.rb +2 -2
- data/lib/fog/joyent/models/compute/images.rb +2 -2
- data/lib/fog/joyent/models/compute/key.rb +1 -1
- data/lib/fog/joyent/models/compute/keys.rb +3 -3
- data/lib/fog/joyent/models/compute/server.rb +13 -13
- data/lib/fog/joyent/models/compute/servers.rb +3 -3
- data/lib/fog/joyent/models/compute/snapshot.rb +4 -4
- data/lib/fog/joyent/models/compute/snapshots.rb +3 -3
- data/lib/fog/libvirt/compute.rb +6 -1
- data/lib/fog/libvirt/models/compute/interface.rb +1 -1
- data/lib/fog/libvirt/models/compute/interfaces.rb +1 -1
- data/lib/fog/libvirt/models/compute/network.rb +1 -1
- data/lib/fog/libvirt/models/compute/networks.rb +1 -1
- data/lib/fog/libvirt/models/compute/nic.rb +2 -2
- data/lib/fog/libvirt/models/compute/nodes.rb +1 -1
- data/lib/fog/libvirt/models/compute/pool.rb +7 -7
- data/lib/fog/libvirt/models/compute/pools.rb +1 -1
- data/lib/fog/libvirt/models/compute/server.rb +28 -28
- data/lib/fog/libvirt/models/compute/servers.rb +2 -2
- data/lib/fog/libvirt/models/compute/volume.rb +5 -5
- data/lib/fog/libvirt/models/compute/volumes.rb +1 -1
- data/lib/fog/linode/models/compute/data_centers.rb +2 -2
- data/lib/fog/linode/models/compute/disk.rb +7 -7
- data/lib/fog/linode/models/compute/disks.rb +2 -2
- data/lib/fog/linode/models/compute/flavors.rb +2 -2
- data/lib/fog/linode/models/compute/images.rb +2 -2
- data/lib/fog/linode/models/compute/ip.rb +3 -3
- data/lib/fog/linode/models/compute/ips.rb +2 -2
- data/lib/fog/linode/models/compute/kernels.rb +2 -2
- data/lib/fog/linode/models/compute/server.rb +13 -13
- data/lib/fog/linode/models/compute/servers.rb +2 -2
- data/lib/fog/linode/models/compute/stack_scripts.rb +3 -3
- data/lib/fog/linode/models/dns/record.rb +6 -6
- data/lib/fog/linode/models/dns/records.rb +2 -2
- data/lib/fog/linode/models/dns/zone.rb +6 -6
- data/lib/fog/linode/models/dns/zones.rb +2 -2
- data/lib/fog/local/models/storage/directories.rb +3 -3
- data/lib/fog/local/models/storage/directory.rb +2 -2
- data/lib/fog/local/models/storage/file.rb +6 -6
- data/lib/fog/local/models/storage/files.rb +2 -2
- data/lib/fog/ninefold/models/compute/address.rb +5 -5
- data/lib/fog/ninefold/models/compute/addresses.rb +2 -2
- data/lib/fog/ninefold/models/compute/flavors.rb +2 -2
- data/lib/fog/ninefold/models/compute/images.rb +2 -2
- data/lib/fog/ninefold/models/compute/ip_forwarding_rule.rb +3 -3
- data/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb +2 -2
- data/lib/fog/ninefold/models/compute/server.rb +9 -9
- data/lib/fog/ninefold/models/compute/servers.rb +2 -2
- data/lib/fog/openstack.rb +40 -14
- data/lib/fog/openstack/README.identity.md +69 -0
- data/lib/fog/openstack/compute.rb +49 -18
- data/lib/fog/openstack/identity.rb +33 -20
- data/lib/fog/openstack/image.rb +10 -4
- data/lib/fog/openstack/models/compute/address.rb +8 -8
- data/lib/fog/openstack/models/compute/addresses.rb +3 -3
- data/lib/fog/openstack/models/compute/flavor.rb +4 -3
- data/lib/fog/openstack/models/compute/flavors.rb +2 -2
- data/lib/fog/openstack/models/compute/host.rb +3 -2
- data/lib/fog/openstack/models/compute/hosts.rb +2 -2
- data/lib/fog/openstack/models/compute/image.rb +4 -3
- data/lib/fog/openstack/models/compute/images.rb +2 -2
- data/lib/fog/openstack/models/compute/key_pair.rb +3 -3
- data/lib/fog/openstack/models/compute/key_pairs.rb +1 -1
- data/lib/fog/openstack/models/compute/metadata.rb +4 -4
- data/lib/fog/openstack/models/compute/metadatum.rb +2 -2
- data/lib/fog/openstack/models/compute/security_group.rb +4 -4
- data/lib/fog/openstack/models/compute/security_groups.rb +2 -2
- data/lib/fog/openstack/models/compute/server.rb +33 -20
- data/lib/fog/openstack/models/compute/servers.rb +2 -2
- data/lib/fog/openstack/models/compute/snapshot.rb +4 -3
- data/lib/fog/openstack/models/compute/snapshots.rb +2 -2
- data/lib/fog/openstack/models/compute/tenant.rb +1 -1
- data/lib/fog/openstack/models/compute/tenants.rb +7 -3
- data/lib/fog/openstack/models/compute/volume.rb +6 -5
- data/lib/fog/openstack/models/compute/volumes.rb +2 -2
- data/lib/fog/openstack/models/identity/ec2_credential.rb +44 -0
- data/lib/fog/openstack/models/identity/ec2_credentials.rb +53 -0
- data/lib/fog/openstack/models/identity/role.rb +4 -4
- data/lib/fog/openstack/models/identity/roles.rb +2 -2
- data/lib/fog/openstack/models/identity/tenant.rb +7 -7
- data/lib/fog/openstack/models/identity/tenants.rb +3 -3
- data/lib/fog/openstack/models/identity/user.rb +12 -6
- data/lib/fog/openstack/models/identity/users.rb +3 -3
- data/lib/fog/openstack/models/image/image.rb +10 -9
- data/lib/fog/openstack/models/image/images.rb +6 -6
- data/lib/fog/openstack/models/network/floating_ip.rb +52 -0
- data/lib/fog/openstack/models/network/floating_ips.rb +34 -0
- data/lib/fog/openstack/models/network/network.rb +6 -5
- data/lib/fog/openstack/models/network/networks.rb +3 -3
- data/lib/fog/openstack/models/network/port.rb +6 -5
- data/lib/fog/openstack/models/network/ports.rb +3 -3
- data/lib/fog/openstack/models/network/subnet.rb +6 -5
- data/lib/fog/openstack/models/network/subnets.rb +3 -3
- data/lib/fog/openstack/models/volume/volume.rb +4 -3
- data/lib/fog/openstack/models/volume/volumes.rb +2 -2
- data/lib/fog/openstack/network.rb +16 -3
- data/lib/fog/openstack/requests/compute/create_security_group.rb +2 -1
- data/lib/fog/openstack/requests/compute/create_security_group_rule.rb +1 -0
- data/lib/fog/openstack/requests/compute/create_server.rb +54 -7
- data/lib/fog/openstack/requests/compute/delete_security_group.rb +2 -0
- data/lib/fog/openstack/requests/compute/list_security_groups.rb +17 -41
- data/lib/fog/openstack/requests/identity/add_user_to_tenant.rb +7 -2
- data/lib/fog/openstack/requests/identity/create_ec2_credential.rb +58 -0
- data/lib/fog/openstack/requests/identity/create_role.rb +1 -1
- data/lib/fog/openstack/requests/identity/create_tenant.rb +1 -3
- data/lib/fog/openstack/requests/identity/delete_ec2_credential.rb +44 -0
- data/lib/fog/openstack/requests/identity/get_ec2_credential.rb +49 -0
- data/lib/fog/openstack/requests/identity/get_user_by_name.rb +8 -0
- data/lib/fog/openstack/requests/identity/list_ec2_credentials.rb +44 -0
- data/lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb +7 -1
- data/lib/fog/openstack/requests/identity/list_users.rb +10 -1
- data/lib/fog/openstack/requests/identity/update_tenant.rb +1 -3
- data/lib/fog/openstack/requests/image/create_image.rb +3 -1
- data/lib/fog/openstack/requests/network/associate_floating_ip.rb +49 -0
- data/lib/fog/openstack/requests/network/create_floating_ip.rb +50 -0
- data/lib/fog/openstack/requests/network/delete_floating_ip.rb +30 -0
- data/lib/fog/openstack/requests/network/disassociate_floating_ip.rb +49 -0
- data/lib/fog/openstack/requests/network/get_floating_ip.rb +42 -0
- data/lib/fog/openstack/requests/network/list_floating_ips.rb +27 -0
- data/lib/fog/openstack/volume.rb +4 -2
- data/lib/fog/ovirt/models/compute/cluster.rb +1 -1
- data/lib/fog/ovirt/models/compute/clusters.rb +2 -2
- data/lib/fog/ovirt/models/compute/interfaces.rb +3 -3
- data/lib/fog/ovirt/models/compute/server.rb +15 -15
- data/lib/fog/ovirt/models/compute/servers.rb +2 -2
- data/lib/fog/ovirt/models/compute/template.rb +5 -5
- data/lib/fog/ovirt/models/compute/templates.rb +2 -2
- data/lib/fog/ovirt/models/compute/volumes.rb +3 -3
- data/lib/fog/rackspace.rb +22 -11
- data/lib/fog/rackspace/block_storage.rb +19 -0
- data/lib/fog/rackspace/compute_v2.rb +29 -0
- data/lib/fog/rackspace/docs/cloud_servers.md +65 -0
- data/lib/fog/rackspace/docs/getting_started.md +76 -0
- data/lib/fog/rackspace/load_balancers.rb +2 -0
- data/lib/fog/rackspace/mock_data.rb +144 -0
- data/lib/fog/rackspace/models/block_storage/snapshot.rb +3 -2
- data/lib/fog/rackspace/models/block_storage/snapshots.rb +2 -2
- data/lib/fog/rackspace/models/block_storage/volume.rb +9 -3
- data/lib/fog/rackspace/models/block_storage/volume_types.rb +3 -3
- data/lib/fog/rackspace/models/block_storage/volumes.rb +2 -2
- data/lib/fog/rackspace/models/compute/flavors.rb +2 -2
- data/lib/fog/rackspace/models/compute/image.rb +3 -3
- data/lib/fog/rackspace/models/compute/images.rb +2 -2
- data/lib/fog/rackspace/models/compute/server.rb +7 -7
- data/lib/fog/rackspace/models/compute/servers.rb +2 -2
- data/lib/fog/rackspace/models/compute_v2/attachment.rb +13 -9
- data/lib/fog/rackspace/models/compute_v2/attachments.rb +2 -2
- data/lib/fog/rackspace/models/compute_v2/flavors.rb +2 -2
- data/lib/fog/rackspace/models/compute_v2/image.rb +36 -1
- data/lib/fog/rackspace/models/compute_v2/images.rb +2 -2
- data/lib/fog/rackspace/models/compute_v2/meta_parent.rb +33 -0
- data/lib/fog/rackspace/models/compute_v2/metadata.rb +77 -0
- data/lib/fog/rackspace/models/compute_v2/metadatum.rb +29 -0
- data/lib/fog/rackspace/models/compute_v2/server.rb +75 -21
- data/lib/fog/rackspace/models/compute_v2/servers.rb +2 -2
- data/lib/fog/rackspace/models/databases/database.rb +2 -2
- data/lib/fog/rackspace/models/databases/databases.rb +1 -1
- data/lib/fog/rackspace/models/databases/flavors.rb +2 -2
- data/lib/fog/rackspace/models/databases/instance.rb +10 -10
- data/lib/fog/rackspace/models/databases/instances.rb +2 -2
- data/lib/fog/rackspace/models/databases/user.rb +2 -2
- data/lib/fog/rackspace/models/databases/users.rb +1 -1
- data/lib/fog/rackspace/models/dns/callback.rb +1 -1
- data/lib/fog/rackspace/models/dns/record.rb +13 -8
- data/lib/fog/rackspace/models/dns/records.rb +2 -2
- data/lib/fog/rackspace/models/dns/zone.rb +5 -5
- data/lib/fog/rackspace/models/dns/zones.rb +2 -2
- data/lib/fog/rackspace/models/identity/credentials.rb +1 -1
- data/lib/fog/rackspace/models/identity/roles.rb +1 -1
- data/lib/fog/rackspace/models/identity/tenants.rb +1 -1
- data/lib/fog/rackspace/models/identity/user.rb +6 -6
- data/lib/fog/rackspace/models/identity/users.rb +3 -3
- data/lib/fog/rackspace/models/load_balancers/access_rule.rb +4 -4
- data/lib/fog/rackspace/models/load_balancers/access_rules.rb +1 -1
- data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +45 -27
- data/lib/fog/rackspace/models/load_balancers/load_balancers.rb +2 -2
- data/lib/fog/rackspace/models/load_balancers/node.rb +4 -4
- data/lib/fog/rackspace/models/load_balancers/nodes.rb +2 -2
- data/lib/fog/rackspace/models/load_balancers/virtual_ip.rb +3 -3
- data/lib/fog/rackspace/models/load_balancers/virtual_ips.rb +1 -1
- data/lib/fog/rackspace/models/storage/directories.rb +2 -2
- data/lib/fog/rackspace/models/storage/directory.rb +12 -12
- data/lib/fog/rackspace/models/storage/file.rb +6 -6
- data/lib/fog/rackspace/models/storage/files.rb +2 -2
- data/lib/fog/rackspace/requests/block_storage/create_snapshot.rb +28 -0
- data/lib/fog/rackspace/requests/block_storage/create_volume.rb +37 -0
- data/lib/fog/rackspace/requests/block_storage/delete_snapshot.rb +7 -0
- data/lib/fog/rackspace/requests/block_storage/delete_volume.rb +17 -0
- data/lib/fog/rackspace/requests/block_storage/get_snapshot.rb +11 -0
- data/lib/fog/rackspace/requests/block_storage/get_volume.rb +17 -0
- data/lib/fog/rackspace/requests/block_storage/get_volume_type.rb +13 -0
- data/lib/fog/rackspace/requests/block_storage/list_snapshots.rb +8 -0
- data/lib/fog/rackspace/requests/block_storage/list_volume_types.rb +7 -0
- data/lib/fog/rackspace/requests/block_storage/list_volumes.rb +7 -0
- data/lib/fog/rackspace/requests/compute_v2/attach_volume.rb +41 -2
- data/lib/fog/rackspace/requests/compute_v2/change_server_password.rb +6 -0
- data/lib/fog/rackspace/requests/compute_v2/confirm_resize_server.rb +8 -0
- data/lib/fog/rackspace/requests/compute_v2/create_image.rb +89 -0
- data/lib/fog/rackspace/requests/compute_v2/create_server.rb +102 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_attachment.rb +15 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_image.rb +31 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_metadata_item.rb +26 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_server.rb +12 -0
- data/lib/fog/rackspace/requests/compute_v2/get_attachment.rb +8 -0
- data/lib/fog/rackspace/requests/compute_v2/get_flavor.rb +11 -0
- data/lib/fog/rackspace/requests/compute_v2/get_image.rb +11 -0
- data/lib/fog/rackspace/requests/compute_v2/get_metadata_item.rb +26 -0
- data/lib/fog/rackspace/requests/compute_v2/get_server.rb +13 -0
- data/lib/fog/rackspace/requests/compute_v2/list_addresses.rb +34 -0
- data/lib/fog/rackspace/requests/compute_v2/list_addresses_by_network.rb +36 -0
- data/lib/fog/rackspace/requests/compute_v2/list_attachments.rb +7 -0
- data/lib/fog/rackspace/requests/compute_v2/list_flavors.rb +7 -0
- data/lib/fog/rackspace/requests/compute_v2/list_images.rb +7 -0
- data/lib/fog/rackspace/requests/compute_v2/list_metadata.rb +26 -0
- data/lib/fog/rackspace/requests/compute_v2/list_servers.rb +7 -0
- data/lib/fog/rackspace/requests/compute_v2/reboot_server.rb +14 -0
- data/lib/fog/rackspace/requests/compute_v2/rebuild_server.rb +13 -4
- data/lib/fog/rackspace/requests/compute_v2/resize_server.rb +8 -0
- data/lib/fog/rackspace/requests/compute_v2/revert_resize_server.rb +8 -0
- data/lib/fog/rackspace/requests/compute_v2/set_metadata.rb +28 -0
- data/lib/fog/rackspace/requests/compute_v2/set_metadata_item.rb +27 -0
- data/lib/fog/rackspace/requests/compute_v2/update_metadata.rb +27 -0
- data/lib/fog/rackspace/requests/compute_v2/update_server.rb +17 -7
- data/lib/fog/rackspace/requests/dns/add_records.rb +5 -1
- data/lib/fog/rackspace/requests/load_balancers/get_content_caching.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/set_content_caching.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/set_ssl_termination.rb +3 -3
- data/lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb +1 -1
- data/lib/fog/serverlove/models/compute/image.rb +11 -11
- data/lib/fog/serverlove/models/compute/images.rb +2 -2
- data/lib/fog/serverlove/models/compute/server.rb +10 -10
- data/lib/fog/serverlove/models/compute/servers.rb +2 -2
- data/lib/fog/storm_on_demand/models/compute/balancer.rb +7 -7
- data/lib/fog/storm_on_demand/models/compute/balancers.rb +1 -1
- data/lib/fog/storm_on_demand/models/compute/configs.rb +1 -1
- data/lib/fog/storm_on_demand/models/compute/images.rb +1 -1
- data/lib/fog/storm_on_demand/models/compute/private_ips.rb +2 -2
- data/lib/fog/storm_on_demand/models/compute/server.rb +5 -5
- data/lib/fog/storm_on_demand/models/compute/servers.rb +2 -2
- data/lib/fog/storm_on_demand/models/compute/stats.rb +1 -1
- data/lib/fog/storm_on_demand/models/compute/templates.rb +1 -1
- data/lib/fog/terremark/models/shared/address.rb +1 -1
- data/lib/fog/terremark/models/shared/addresses.rb +5 -5
- data/lib/fog/terremark/models/shared/images.rb +5 -5
- data/lib/fog/terremark/models/shared/internetservice.rb +6 -6
- data/lib/fog/terremark/models/shared/internetservices.rb +5 -5
- data/lib/fog/terremark/models/shared/network.rb +1 -1
- data/lib/fog/terremark/models/shared/networks.rb +6 -6
- data/lib/fog/terremark/models/shared/nodeservice.rb +3 -3
- data/lib/fog/terremark/models/shared/nodeservices.rb +4 -4
- data/lib/fog/terremark/models/shared/server.rb +17 -17
- data/lib/fog/terremark/models/shared/servers.rb +6 -6
- data/lib/fog/terremark/models/shared/task.rb +4 -4
- data/lib/fog/terremark/models/shared/tasks.rb +5 -5
- data/lib/fog/terremark/models/shared/vdc.rb +4 -4
- data/lib/fog/terremark/models/shared/vdcs.rb +5 -5
- data/lib/fog/terremark/parser.rb +1 -1
- data/lib/fog/terremark/shared.rb +1 -1
- data/lib/fog/vcloud/compute.rb +4 -4
- data/lib/fog/vcloud/models/compute/catalog.rb +1 -1
- data/lib/fog/vcloud/models/compute/catalog_item.rb +1 -1
- data/lib/fog/vcloud/models/compute/catalog_items.rb +4 -4
- data/lib/fog/vcloud/models/compute/catalogs.rb +3 -3
- data/lib/fog/vcloud/models/compute/ip.rb +1 -1
- data/lib/fog/vcloud/models/compute/ips.rb +3 -3
- data/lib/fog/vcloud/models/compute/network.rb +1 -1
- data/lib/fog/vcloud/models/compute/networks.rb +6 -6
- data/lib/fog/vcloud/models/compute/organization.rb +4 -4
- data/lib/fog/vcloud/models/compute/organizations.rb +4 -4
- data/lib/fog/vcloud/models/compute/server.rb +13 -13
- data/lib/fog/vcloud/models/compute/servers.rb +4 -4
- data/lib/fog/vcloud/models/compute/tasks.rb +3 -3
- data/lib/fog/vcloud/models/compute/vapp.rb +2 -2
- data/lib/fog/vcloud/models/compute/vapps.rb +2 -2
- data/lib/fog/vcloud/models/compute/vdc.rb +2 -2
- data/lib/fog/vcloud/models/compute/vdcs.rb +3 -3
- data/lib/fog/version.rb +1 -3
- data/lib/fog/virtual_box/compute.rb +11 -5
- data/lib/fog/virtual_box/models/compute/medium.rb +2 -2
- data/lib/fog/virtual_box/models/compute/mediums.rb +4 -4
- data/lib/fog/virtual_box/models/compute/nat_engine.rb +2 -2
- data/lib/fog/virtual_box/models/compute/network_adapter.rb +1 -1
- data/lib/fog/virtual_box/models/compute/network_adapters.rb +1 -1
- data/lib/fog/virtual_box/models/compute/server.rb +5 -5
- data/lib/fog/virtual_box/models/compute/servers.rb +2 -2
- data/lib/fog/vmfusion/compute.rb +6 -1
- data/lib/fog/vmfusion/models/compute/server.rb +1 -1
- data/lib/fog/voxel/models/compute/images.rb +2 -2
- data/lib/fog/voxel/models/compute/server.rb +6 -6
- data/lib/fog/voxel/models/compute/servers.rb +2 -2
- data/lib/fog/vsphere/compute.rb +4 -1
- data/lib/fog/vsphere/models/compute/cluster.rb +2 -2
- data/lib/fog/vsphere/models/compute/clusters.rb +2 -2
- data/lib/fog/vsphere/models/compute/datacenter.rb +8 -4
- data/lib/fog/vsphere/models/compute/datacenters.rb +3 -3
- data/lib/fog/vsphere/models/compute/datastores.rb +2 -2
- data/lib/fog/vsphere/models/compute/folder.rb +1 -1
- data/lib/fog/vsphere/models/compute/folders.rb +2 -2
- data/lib/fog/vsphere/models/compute/interfaces.rb +3 -3
- data/lib/fog/vsphere/models/compute/networks.rb +2 -2
- data/lib/fog/vsphere/models/compute/resource_pools.rb +3 -3
- data/lib/fog/vsphere/models/compute/server.rb +37 -26
- data/lib/fog/vsphere/models/compute/servers.rb +2 -2
- data/lib/fog/vsphere/models/compute/templates.rb +2 -2
- data/lib/fog/vsphere/models/compute/volumes.rb +3 -3
- data/lib/fog/vsphere/requests/compute/create_folder.rb +22 -0
- data/lib/fog/vsphere/requests/compute/create_vm.rb +2 -2
- data/lib/fog/vsphere/requests/compute/get_folder.rb +1 -1
- data/lib/fog/vsphere/requests/compute/get_network.rb +6 -1
- data/lib/fog/vsphere/requests/compute/get_virtual_machine.rb +1 -1
- data/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +9 -3
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +148 -64
- data/lib/fog/xenserver.rb +26 -2
- data/lib/fog/xenserver/CHANGELOG.md +71 -0
- data/lib/fog/xenserver/compute.rb +9 -0
- data/lib/fog/xenserver/examples/README.md +11 -0
- data/lib/fog/xenserver/examples/chage_default_storage_repository.md +99 -0
- data/lib/fog/xenserver/examples/creating_servers.md +168 -0
- data/lib/fog/xenserver/examples/getting_started.md +163 -0
- data/lib/fog/xenserver/examples/storage_repositories.md +94 -0
- data/lib/fog/xenserver/models/compute/host.rb +87 -7
- data/lib/fog/xenserver/models/compute/host_cpu.rb +37 -0
- data/lib/fog/xenserver/models/compute/host_metrics.rb +29 -0
- data/lib/fog/xenserver/models/compute/hosts.rb +8 -8
- data/lib/fog/xenserver/models/compute/network.rb +11 -11
- data/lib/fog/xenserver/models/compute/networks.rb +3 -3
- data/lib/fog/xenserver/models/compute/pbd.rb +11 -6
- data/lib/fog/xenserver/models/compute/pbds.rb +3 -3
- data/lib/fog/xenserver/models/compute/pif.rb +9 -9
- data/lib/fog/xenserver/models/compute/pifs.rb +3 -3
- data/lib/fog/xenserver/models/compute/pool.rb +30 -8
- data/lib/fog/xenserver/models/compute/pools.rb +3 -3
- data/lib/fog/xenserver/models/compute/server.rb +29 -29
- data/lib/fog/xenserver/models/compute/servers.rb +8 -8
- data/lib/fog/xenserver/models/compute/storage_repositories.rb +2 -2
- data/lib/fog/xenserver/models/compute/storage_repository.rb +52 -9
- data/lib/fog/xenserver/models/compute/vbd.rb +16 -16
- data/lib/fog/xenserver/models/compute/vbds.rb +3 -3
- data/lib/fog/xenserver/models/compute/vdi.rb +17 -17
- data/lib/fog/xenserver/models/compute/vdis.rb +3 -3
- data/lib/fog/xenserver/models/compute/vif.rb +10 -10
- data/lib/fog/xenserver/models/compute/vifs.rb +3 -3
- data/lib/fog/xenserver/requests/compute/create_sr.rb +72 -0
- data/lib/fog/xenserver/requests/compute/destroy_sr.rb +30 -0
- data/lib/fog/xenserver/requests/compute/disable_host.rb +29 -0
- data/lib/fog/xenserver/requests/compute/enable_host.rb +28 -0
- data/lib/fog/xenserver/requests/compute/reboot_host.rb +23 -0
- data/lib/fog/xenserver/requests/compute/shutdown_host.rb +23 -0
- data/lib/fog/xenserver/requests/compute/unplug_pbd.rb +25 -0
- data/lib/fog/zerigo/models/dns/record.rb +4 -4
- data/lib/fog/zerigo/models/dns/records.rb +2 -2
- data/lib/fog/zerigo/models/dns/zone.rb +6 -6
- data/lib/fog/zerigo/models/dns/zones.rb +2 -2
- data/lib/tasks/changelog_task.rb +1 -0
- data/lib/tasks/test_task.rb +1 -1
- data/tests/aws/models/cloud_watch/metrics_tests.rb +16 -1
- data/tests/aws/requests/auto_scaling/model_tests.rb +1 -3
- data/tests/aws/requests/compute/snapshot_tests.rb +19 -0
- data/tests/aws/requests/compute/spot_instance_tests.rb +4 -2
- data/tests/aws/requests/elasticache/describe_reserved_cache_nodes.rb +17 -0
- data/tests/aws/requests/elasticache/helper.rb +17 -0
- data/tests/aws/requests/glacier/vault_tests.rb +1 -1
- data/tests/aws/requests/storage/bucket_tests.rb +37 -3
- data/tests/aws/requests/storage/cors_utils_tests.rb +108 -0
- data/tests/brightbox/models/compute/account_tests.rb +2 -0
- data/tests/brightbox/models/compute/server_tests.rb +21 -0
- data/tests/brightbox/requests/compute/firewall_policy_tests.rb +33 -0
- data/tests/brightbox/requests/compute/firewall_rule_tests.rb +43 -0
- data/tests/brightbox/requests/compute/helper.rb +33 -30
- data/tests/compute/helper.rb +28 -6
- data/tests/compute/models/flavors_tests.rb +4 -2
- data/tests/compute/models/server_tests.rb +5 -1
- data/tests/compute/models/servers_tests.rb +5 -2
- data/tests/core/parser_tests.rb +32 -6
- data/tests/core/wait_for_tests.rb +13 -0
- data/tests/ecloud/compute/models/admin_organization_tests.rb +16 -0
- data/tests/ecloud/compute/models/compute_pool_tests.rb +17 -0
- data/tests/ecloud/compute/models/detached_disk_tests.rb +26 -0
- data/tests/ecloud/compute/models/environment_tests.rb +23 -0
- data/tests/ecloud/compute/models/internet_service_tests.rb +28 -0
- data/tests/ecloud/compute/models/ip_address_tests.rb +19 -0
- data/tests/ecloud/compute/models/network_tests.rb +17 -0
- data/tests/ecloud/compute/models/operating_system_families_tests.rb +13 -0
- data/tests/ecloud/compute/models/operating_system_tests.rb +22 -0
- data/tests/ecloud/compute/models/organization_tests.rb +21 -0
- data/tests/ecloud/compute/models/public_ip_tests.rb +19 -0
- data/tests/ecloud/compute/models/server_tests.rb +151 -0
- data/tests/ecloud/compute/models/ssh_key_tests.rb +19 -0
- data/tests/ecloud/compute/models/template_tests.rb +20 -0
- data/tests/openstack/authenticate_tests.rb +142 -0
- data/tests/openstack/models/compute/server_tests.rb +45 -0
- data/tests/openstack/models/identity/ec2_credential_tests.rb +41 -0
- data/tests/openstack/models/identity/ec2_credentials_tests.rb +58 -0
- data/tests/openstack/models/identity/tenant_tests.rb +6 -0
- data/tests/openstack/models/network/floating_ip_tests.rb +30 -0
- data/tests/openstack/models/network/floating_ips_tests.rb +27 -0
- data/tests/openstack/requests/compute/address_tests.rb +1 -3
- data/tests/openstack/requests/compute/helper.rb +20 -0
- data/tests/openstack/requests/compute/quota_tests.rb +2 -0
- data/tests/openstack/requests/compute/security_group_tests.rb +10 -2
- data/tests/openstack/requests/compute/server_tests.rb +29 -14
- data/tests/openstack/requests/identity/ec2_credentials_tests.rb +41 -0
- data/tests/openstack/requests/identity/role_tests.rb +0 -1
- data/tests/openstack/requests/identity/user_tests.rb +8 -0
- data/tests/rackspace/helper.rb +17 -1
- data/tests/rackspace/models/block_storage/snapshot_tests.rb +18 -13
- data/tests/rackspace/models/block_storage/snapshots_tests.rb +1 -3
- data/tests/rackspace/models/block_storage/volume_tests.rb +14 -10
- data/tests/rackspace/models/block_storage/volume_types_tests.rb +1 -3
- data/tests/rackspace/models/block_storage/volumes_tests.rb +1 -3
- data/tests/rackspace/models/compute_v2/flavors_tests.rb +1 -4
- data/tests/rackspace/models/compute_v2/image_tests.rb +26 -0
- data/tests/rackspace/models/compute_v2/images_tests.rb +1 -3
- data/tests/rackspace/models/compute_v2/metadata_tests.rb +42 -0
- data/tests/rackspace/models/compute_v2/server_tests.rb +89 -15
- data/tests/rackspace/models/compute_v2/servers_tests.rb +12 -8
- data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +17 -0
- data/tests/rackspace/models/storage/file_tests.rb +6 -0
- data/tests/rackspace/requests/block_storage/snapshot_tests.rb +15 -15
- data/tests/rackspace/requests/block_storage/volume_tests.rb +9 -11
- data/tests/rackspace/requests/block_storage/volume_type_tests.rb +8 -11
- data/tests/rackspace/requests/compute/address_tests.rb +11 -9
- data/tests/rackspace/requests/compute/flavor_tests.rb +6 -5
- data/tests/rackspace/requests/compute/image_tests.rb +12 -10
- data/tests/rackspace/requests/compute/resize_tests.rb +8 -6
- data/tests/rackspace/requests/compute/server_tests.rb +19 -17
- data/tests/rackspace/requests/compute_v2/address_tests.rb +43 -0
- data/tests/rackspace/requests/compute_v2/attachment_tests.rb +17 -17
- data/tests/rackspace/requests/compute_v2/flavor_tests.rb +7 -9
- data/tests/rackspace/requests/compute_v2/image_tests.rb +42 -16
- data/tests/rackspace/requests/compute_v2/metadata_tests.rb +104 -0
- data/tests/rackspace/requests/compute_v2/server_tests.rb +44 -60
- data/tests/rackspace/requests/dns/records_tests.rb +2 -2
- data/tests/rackspace/requests/load_balancers/content_caching_tests.rb +25 -0
- data/tests/rackspace/requests/load_balancers/helper.rb +5 -1
- data/tests/vsphere/requests/compute/vm_clone_tests.rb +6 -4
- data/tests/xenserver/models/compute/host_cpu_tests.rb +58 -0
- data/tests/xenserver/models/compute/host_metrics_tests.rb +48 -0
- data/tests/xenserver/models/compute/host_tests.rb +33 -2
- data/tests/xenserver/models/compute/pbd_tests.rb +33 -1
- data/tests/xenserver/models/compute/pool_tests.rb +7 -1
- data/tests/xenserver/models/compute/storage_repository_tests.rb +52 -1
- data/tests/xenserver/requests/compute/create_sr_tests.rb +54 -0
- data/tests/xenserver/requests/compute/destroy_sr_tests.rb +46 -0
- data/tests/xenserver/requests/compute/disable_host_tests.rb +16 -0
- data/tests/xenserver/requests/compute/enable_host_tests.rb +16 -0
- data/tests/xenserver/requests/compute/unplug_pbd_tests.rb +48 -0
- metadata +153 -42
- data/docs/_config.yml +0 -39
- data/docs/_layouts/default.html +0 -111
- data/docs/about/contributing.markdown +0 -229
- data/docs/about/getting_started.markdown +0 -108
- data/docs/about/press.markdown +0 -52
- data/docs/about/structure.markdown +0 -78
- data/docs/about/users.markdown +0 -34
- data/docs/cdn/index.markdown +0 -148
- data/docs/compute/index.markdown +0 -122
- data/docs/dns/index.markdown +0 -79
- data/docs/index.markdown +0 -93
- data/docs/public/crossdomain.xml +0 -25
- data/docs/public/css/fog.css +0 -142
- data/docs/public/css/handheld.css +0 -8
- data/docs/public/css/style.css +0 -129
- data/docs/public/images/.gitignore +0 -3
- data/docs/public/js/libs/dd_belatedpng.js +0 -289
- data/docs/public/js/libs/dd_belatedpng.min.js +0 -13
- data/docs/public/js/libs/jquery-1.4.2.js +0 -6240
- data/docs/public/js/libs/jquery-1.4.2.min.js +0 -154
- data/docs/public/js/libs/modernizr-1.6.js +0 -892
- data/docs/public/js/libs/modernizr-1.6.min.js +0 -30
- data/docs/public/js/mylibs/.gitignore +0 -3
- data/docs/public/js/plugins.js +0 -34
- data/docs/public/js/profiling/config.js +0 -59
- data/docs/public/js/profiling/yahoo-profiling.css +0 -7
- data/docs/public/js/profiling/yahoo-profiling.js +0 -1028
- data/docs/public/js/profiling/yahoo-profiling.min.js +0 -39
- data/docs/public/js/script.js +0 -26
- data/docs/public/robots.txt +0 -5
- data/docs/storage/index.markdown +0 -204
- data/lib/fog/ecloud/requests/compute/get_admin_organizations.rb +0 -11
- data/lib/fog/ecloud/requests/compute/get_ip_addresses.rb +0 -11
- data/lib/fog/ecloud/requests/compute/get_operating_system_family.rb +0 -11
- data/lib/fog/ecloud/requests/compute/virtual_machine_add_ip.rb +0 -40
- data/lib/tasks/documentation_task.rb +0 -155
data/docs/index.markdown
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
title: The Ruby cloud services library
|
4
|
-
---
|
5
|
-
|
6
|
-
Whether you need compute, dns, storage, or a multitude of other services, fog provides an accessible entry point and facilitates cross service compatibility.
|
7
|
-
|
8
|
-
Just getting started working with cloud resources? You are not alone, and having so many complicated options makes it hard to know where to start. fog delivers the knowledge of cloud experts to you, helping you to bootstrap your cloud usage and guiding you as your own expertise develops.
|
9
|
-
|
10
|
-
By coding with fog from the start you avoid vendor lock-in and give yourself more flexibility to provide value. Whether you are writing a library, designing a software as a service product or just hacking on the weekend this flexibility is a huge boon.
|
11
|
-
|
12
|
-
With a rapidly expanding community and codebase the advantages of fog just keep coming. Join us and together we will realize the future of cloud computing.
|
13
|
-
|
14
|
-
## Getting Started
|
15
|
-
|
16
|
-
sudo gem install fog
|
17
|
-
|
18
|
-
Now type 'fog' to try stuff, confident that fog will let you know what to do. Here is an example of wading through server creation for Amazon Elastic Compute Cloud:
|
19
|
-
|
20
|
-
>> server = Compute[:aws].servers.create
|
21
|
-
ArgumentError: image_id is required for this operation
|
22
|
-
|
23
|
-
>> server = Compute[:aws].servers.create(:image_id => 'ami-5ee70037')
|
24
|
-
<Fog::AWS::EC2::Server [...]>
|
25
|
-
|
26
|
-
>> server.destroy # cleanup after yourself or regret it, trust me
|
27
|
-
true
|
28
|
-
|
29
|
-
## Go forth and conquer
|
30
|
-
|
31
|
-
Play around and use the console to explore or check out the [getting started guide](/about/getting_started.html) for more details. Once you are reading to start scripting fog, here is a quick hint on how to make connections without the command line thing to help you.
|
32
|
-
|
33
|
-
# create a compute connection
|
34
|
-
compute = Fog::Compute.new({:provider => 'AWS', :aws_access_key_id => ACCESS_KEY_ID, :aws_secret_access_key => SECRET_ACCESS_KEY})
|
35
|
-
# compute operations go here
|
36
|
-
|
37
|
-
# create a storage connection
|
38
|
-
storage = Fog::Storage.new({:provider => 'AWS', :aws_access_key_id => ACCESS_KEY_ID, :aws_secret_access_key => SECRET_ACCESS_KEY})
|
39
|
-
# storage operations go here
|
40
|
-
|
41
|
-
geemus says: "That should give you everything you need to get started, but let me know if there is anything I can do to help!"
|
42
|
-
|
43
|
-
## Contributing
|
44
|
-
|
45
|
-
* Find something you would like to work on.
|
46
|
-
* Look for anything you can help with in the [issue tracker](https://github.com/fog/fog/issues).
|
47
|
-
* Look at the [code quality metrics](https://codeclimate.com/github/fog/fog) for anything you can help clean up.
|
48
|
-
* Or anything else!
|
49
|
-
* Fork the project and do your work in a topic branch.
|
50
|
-
* Make sure your changes will work on both Ruby 1.8.7 and Ruby 1.9.
|
51
|
-
* Add a config at `tests/.fog` for the component you want to test.
|
52
|
-
* Add shindo tests to prove your code works and run all the tests using `bundle exec rake`.
|
53
|
-
* Rebase your branch against `fog/fog` to make sure everything is up to date.
|
54
|
-
* Commit your changes and send a pull request.
|
55
|
-
|
56
|
-
## Resources
|
57
|
-
|
58
|
-
Enjoy, and let me know what I can do to continue improving fog!
|
59
|
-
|
60
|
-
* Work through the [fog tutorial](https://github.com/downloads/geemus/learn_fog/learn_fog.tar.gz)
|
61
|
-
* Read fog's API documentation [master branch](http://rubydoc.info/github/fog/fog) or [latest gem release](http://rubydoc.info/gems/fog)
|
62
|
-
* Stay up to date by following [@fog](http://twitter.com/fog) and/or [@geemus](http://twitter.com/geemus) on Twitter.
|
63
|
-
* Get and give help on the [#ruby-fog](irc://irc.freenode.net/ruby-fog) irc channel on Freenode
|
64
|
-
* Follow release notes and discussions on the [mailing list](http://groups.google.com/group/ruby-fog)
|
65
|
-
* Report bugs or find tasks to help with in the [issues](http://github.com/fog/fog/issues)
|
66
|
-
* Learn about [contributing](/about/contributing.html)
|
67
|
-
* See where fog is used and let the world know how you use it [in the wild](/about/users.html)
|
68
|
-
* Check out blog posts and other mentions in the [press](/about/press.html)
|
69
|
-
|
70
|
-
## Copyright
|
71
|
-
|
72
|
-
(The MIT License)
|
73
|
-
|
74
|
-
Copyright (c) 2012 [geemus (Wesley Beary)](http://github.com/geemus)
|
75
|
-
|
76
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
77
|
-
a copy of this software and associated documentation files (the
|
78
|
-
"Software"), to deal in the Software without restriction, including
|
79
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
80
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
81
|
-
permit persons to whom the Software is furnished to do so, subject to
|
82
|
-
the following conditions:
|
83
|
-
|
84
|
-
The above copyright notice and this permission notice shall be
|
85
|
-
included in all copies or substantial portions of the Software.
|
86
|
-
|
87
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
88
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
89
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
90
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
91
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
92
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
93
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/docs/public/crossdomain.xml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
<?xml version="1.0"?>
|
2
|
-
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
|
3
|
-
<cross-domain-policy>
|
4
|
-
|
5
|
-
|
6
|
-
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
|
7
|
-
|
8
|
-
<!-- Most restrictive policy: -->
|
9
|
-
<site-control permitted-cross-domain-policies="none"/>
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<!-- Least restrictive policy: -->
|
14
|
-
<!--
|
15
|
-
<site-control permitted-cross-domain-policies="all"/>
|
16
|
-
<allow-access-from domain="*" to-ports="*" secure="false"/>
|
17
|
-
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
|
18
|
-
-->
|
19
|
-
<!--
|
20
|
-
If you host a crossdomain.xml file with allow-access-from domain=“*”
|
21
|
-
and don’t understand all of the points described here, you probably
|
22
|
-
have a nasty security vulnerability. ~ simon willison
|
23
|
-
-->
|
24
|
-
|
25
|
-
</cross-domain-policy>
|
data/docs/public/css/fog.css
DELETED
@@ -1,142 +0,0 @@
|
|
1
|
-
/* layout */
|
2
|
-
body {
|
3
|
-
background-color: #EBF2F9;
|
4
|
-
line-height: 1.5em;
|
5
|
-
text-align: center;
|
6
|
-
}
|
7
|
-
|
8
|
-
#container {
|
9
|
-
margin: auto;
|
10
|
-
text-align: left;
|
11
|
-
width: 800px;
|
12
|
-
}
|
13
|
-
|
14
|
-
header {
|
15
|
-
background-color: #A0C0E1;
|
16
|
-
border-color: #70A1D2;
|
17
|
-
-moz-border-radius: 0 0 0.5em 0.5em;
|
18
|
-
border-radius: 0 0 0.5em 0.5em;
|
19
|
-
border-style: solid;
|
20
|
-
border-width: 0 1px 1px 1px;
|
21
|
-
color: #FFF;
|
22
|
-
height: 154px;
|
23
|
-
margin-bottom: 2em;
|
24
|
-
position: relative;
|
25
|
-
text-align: center;
|
26
|
-
}
|
27
|
-
|
28
|
-
header a, header a:active, header a:visited {
|
29
|
-
color: #FFF;
|
30
|
-
}
|
31
|
-
|
32
|
-
header img {
|
33
|
-
position: absolute;
|
34
|
-
left: 0;
|
35
|
-
top: 0;
|
36
|
-
}
|
37
|
-
|
38
|
-
header h1 {
|
39
|
-
font-size: 2em;
|
40
|
-
line-height: 154px;
|
41
|
-
}
|
42
|
-
|
43
|
-
header dl {
|
44
|
-
background-color: #70A1D2;
|
45
|
-
border-color: #70A1D2;
|
46
|
-
-moz-border-radius: 0 0 0.5em 0.5em;
|
47
|
-
border-radius: 0 0 0.5em 0.5em;
|
48
|
-
height: 140px; /* 154 - padding-top */
|
49
|
-
position: absolute;
|
50
|
-
padding: 14px 1.5em 0 1.5em;
|
51
|
-
right: 0;
|
52
|
-
top: 0;
|
53
|
-
}
|
54
|
-
|
55
|
-
header dl dt {
|
56
|
-
font-weight: bold;
|
57
|
-
}
|
58
|
-
|
59
|
-
nav, #main {
|
60
|
-
background-color: #FFF;
|
61
|
-
-moz-border-radius: 0.5em;
|
62
|
-
border-radius: 0.5em;
|
63
|
-
color: #666;
|
64
|
-
border: 1px solid #70A1D2;
|
65
|
-
padding: 0 1em;
|
66
|
-
margin-bottom: 2em;
|
67
|
-
}
|
68
|
-
|
69
|
-
nav {
|
70
|
-
padding: 1em;
|
71
|
-
}
|
72
|
-
|
73
|
-
nav li {
|
74
|
-
display: inline;
|
75
|
-
padding-left: 2em;
|
76
|
-
}
|
77
|
-
|
78
|
-
nav li a {
|
79
|
-
font-size: 1.5em;
|
80
|
-
}
|
81
|
-
|
82
|
-
footer {
|
83
|
-
background-color: #A0C0E1;
|
84
|
-
border-color: #70A1D2;
|
85
|
-
-moz-border-radius: 0.5em 0.5em 0 0;
|
86
|
-
border-radius: 0.5em 0.5em 0 0;
|
87
|
-
border-style: solid;
|
88
|
-
border-width: 1px 1px 0 1px;
|
89
|
-
color: #FFF;
|
90
|
-
text-align: center;
|
91
|
-
}
|
92
|
-
|
93
|
-
footer img {
|
94
|
-
padding: 5px;
|
95
|
-
vertical-align: middle;
|
96
|
-
}
|
97
|
-
|
98
|
-
/* misc */
|
99
|
-
|
100
|
-
h2 {
|
101
|
-
border-bottom: 2px solid #A0C0E1;
|
102
|
-
color: #70A1D2;
|
103
|
-
font-size: 1.5em;
|
104
|
-
margin-top: 1.33333333333333em;
|
105
|
-
padding: 0 0.75em 0.75em 0;
|
106
|
-
}
|
107
|
-
|
108
|
-
code, pre {
|
109
|
-
background-color: #EBF2F9;
|
110
|
-
border: 1px solid #70A1D2;
|
111
|
-
color: #666;
|
112
|
-
}
|
113
|
-
|
114
|
-
code {
|
115
|
-
padding: 0 0.2em;
|
116
|
-
}
|
117
|
-
|
118
|
-
p, ul {
|
119
|
-
margin-bottom: 1em;
|
120
|
-
margin-top: 1em;
|
121
|
-
}
|
122
|
-
|
123
|
-
pre {
|
124
|
-
-moz-border-radius: 0.5em;
|
125
|
-
border-radius: 0.5em;
|
126
|
-
margin: 1em;
|
127
|
-
white-space: pre;
|
128
|
-
}
|
129
|
-
|
130
|
-
pre code {
|
131
|
-
border: none;
|
132
|
-
}
|
133
|
-
|
134
|
-
@media all and (orientation:portrait) {
|
135
|
-
}
|
136
|
-
|
137
|
-
@media all and (orientation:landscape) {
|
138
|
-
}
|
139
|
-
|
140
|
-
@media screen and (max-device-width: 480px) {
|
141
|
-
/* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
|
142
|
-
}
|
data/docs/public/css/style.css
DELETED
@@ -1,129 +0,0 @@
|
|
1
|
-
/* HTML5 ✰ Boilerplate */
|
2
|
-
|
3
|
-
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
4
|
-
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
|
5
|
-
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
|
6
|
-
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
|
7
|
-
article, aside, canvas, details, figcaption, figure, footer, header, hgroup,
|
8
|
-
menu, nav, section, summary, time, mark, audio, video {
|
9
|
-
margin:0;
|
10
|
-
padding:0;
|
11
|
-
border:0;
|
12
|
-
outline:0;
|
13
|
-
font-size:100%;
|
14
|
-
vertical-align:baseline;
|
15
|
-
background:transparent;
|
16
|
-
}
|
17
|
-
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
|
18
|
-
display:block;
|
19
|
-
}
|
20
|
-
nav ul { list-style:none; }
|
21
|
-
blockquote, q { quotes:none; }
|
22
|
-
blockquote:before, blockquote:after,
|
23
|
-
q:before, q:after { content:''; content:none; }
|
24
|
-
a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }
|
25
|
-
ins { background-color:#ff9; color:#000; text-decoration:none; }
|
26
|
-
mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }
|
27
|
-
del { text-decoration: line-through; }
|
28
|
-
abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }
|
29
|
-
table { border-collapse:collapse; border-spacing:0; }
|
30
|
-
hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }
|
31
|
-
input, select { vertical-align:middle; }
|
32
|
-
|
33
|
-
|
34
|
-
body { font:13px/1.231 sans-serif; *font-size:small; }
|
35
|
-
select, input, textarea, button { font:99% sans-serif; }
|
36
|
-
pre, code, kbd, samp { font-family: monospace, sans-serif; }
|
37
|
-
|
38
|
-
body, select, input, textarea { color: #444; }
|
39
|
-
h1,h2,h3,h4,h5,h6 { font-weight: bold; }
|
40
|
-
html { overflow-y: scroll; }
|
41
|
-
|
42
|
-
a:hover, a:active { outline: none; }
|
43
|
-
a, a:active, a:visited { color: #607890; }
|
44
|
-
a:hover { color: #036; }
|
45
|
-
|
46
|
-
ul, ol { margin-left: 1.8em; }
|
47
|
-
ol { list-style-type: decimal; }
|
48
|
-
|
49
|
-
nav ul, nav li { margin: 0; }
|
50
|
-
small { font-size: 85%; }
|
51
|
-
strong, th { font-weight: bold; }
|
52
|
-
td, td img { vertical-align: top; }
|
53
|
-
sub { vertical-align: sub; font-size: smaller; }
|
54
|
-
sup { vertical-align: super; font-size: smaller; }
|
55
|
-
pre { padding: 15px; white-space: pre; white-space: pre-wrap; white-space: pre-line; word-wrap: break-word; }
|
56
|
-
textarea { overflow: auto; }
|
57
|
-
.ie6 legend, .ie7 legend { margin-left: -7px; }
|
58
|
-
input[type="radio"] { vertical-align: text-bottom; }
|
59
|
-
input[type="checkbox"] { vertical-align: bottom; }
|
60
|
-
.ie7 input[type="checkbox"] { vertical-align: baseline; }
|
61
|
-
.ie6 input { vertical-align: text-bottom; }
|
62
|
-
label, input[type=button], input[type=submit], button { cursor: pointer; }
|
63
|
-
button, input, select, textarea { margin: 0; }
|
64
|
-
input:valid, textarea:valid { }
|
65
|
-
input:invalid, textarea:invalid { border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red; }
|
66
|
-
.no-boxshadow input:invalid,
|
67
|
-
.no-boxshadow textarea:invalid { background-color: #f0dddd; }
|
68
|
-
|
69
|
-
::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
|
70
|
-
::selection { background:#FF5E99; color:#fff; text-shadow: none; }
|
71
|
-
a:link { -webkit-tap-highlight-color: #FF5E99; }
|
72
|
-
|
73
|
-
button { width: auto; overflow: visible; }
|
74
|
-
.ie7 img { -ms-interpolation-mode: bicubic; }
|
75
|
-
|
76
|
-
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
|
77
|
-
.hidden { display: none; visibility: hidden; }
|
78
|
-
.visuallyhidden { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px); }
|
79
|
-
.invisible { visibility: hidden; }
|
80
|
-
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; visibility: hidden; }
|
81
|
-
.clearfix:after { clear: both; }
|
82
|
-
.clearfix { zoom: 1; }
|
83
|
-
|
84
|
-
|
85
|
-
/* Primary Styles
|
86
|
-
Author:
|
87
|
-
*/
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
@media all and (orientation:portrait) {
|
103
|
-
|
104
|
-
}
|
105
|
-
|
106
|
-
@media all and (orientation:landscape) {
|
107
|
-
|
108
|
-
}
|
109
|
-
|
110
|
-
@media screen and (max-device-width: 480px) {
|
111
|
-
|
112
|
-
|
113
|
-
/* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
|
114
|
-
}
|
115
|
-
|
116
|
-
@media print {
|
117
|
-
* { background: transparent !important; color: #444 !important; text-shadow: none !important; }
|
118
|
-
a, a:visited { color: #444 !important; text-decoration: underline; }
|
119
|
-
a:after { content: " (" attr(href) ")"; }
|
120
|
-
abbr:after { content: " (" attr(title) ")"; }
|
121
|
-
.ir a:after { content: ""; }
|
122
|
-
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
|
123
|
-
thead { display: table-header-group; }
|
124
|
-
tr, img { page-break-inside: avoid; }
|
125
|
-
@page { margin: 0.5cm; }
|
126
|
-
p, h2, h3 { orphans: 3; widows: 3; }
|
127
|
-
h2, h3{ page-break-after: avoid; }
|
128
|
-
}
|
129
|
-
|
@@ -1,289 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>.
|
3
|
-
* Author: Drew Diller
|
4
|
-
* Email: drew.diller@gmail.com
|
5
|
-
* URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/
|
6
|
-
* Version: 0.0.8a
|
7
|
-
* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license
|
8
|
-
*
|
9
|
-
* Example usage:
|
10
|
-
* DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector
|
11
|
-
* DD_belatedPNG.fixPng( someNode ); // argument is an HTMLDomElement
|
12
|
-
**/
|
13
|
-
|
14
|
-
/*
|
15
|
-
PLEASE READ:
|
16
|
-
Absolutely everything in this script is SILLY. I know this. IE's rendering of certain pixels doesn't make sense, so neither does this code!
|
17
|
-
*/
|
18
|
-
|
19
|
-
var DD_belatedPNG = {
|
20
|
-
ns: 'DD_belatedPNG',
|
21
|
-
imgSize: {},
|
22
|
-
delay: 10,
|
23
|
-
nodesFixed: 0,
|
24
|
-
createVmlNameSpace: function () { /* enable VML */
|
25
|
-
if (document.namespaces && !document.namespaces[this.ns]) {
|
26
|
-
document.namespaces.add(this.ns, 'urn:schemas-microsoft-com:vml');
|
27
|
-
}
|
28
|
-
},
|
29
|
-
createVmlStyleSheet: function () { /* style VML, enable behaviors */
|
30
|
-
/*
|
31
|
-
Just in case lots of other developers have added
|
32
|
-
lots of other stylesheets using document.createStyleSheet
|
33
|
-
and hit the 31-limit mark, let's not use that method!
|
34
|
-
further reading: http://msdn.microsoft.com/en-us/library/ms531194(VS.85).aspx
|
35
|
-
*/
|
36
|
-
var screenStyleSheet, printStyleSheet;
|
37
|
-
screenStyleSheet = document.createElement('style');
|
38
|
-
screenStyleSheet.setAttribute('media', 'screen');
|
39
|
-
document.documentElement.firstChild.insertBefore(screenStyleSheet, document.documentElement.firstChild.firstChild);
|
40
|
-
if (screenStyleSheet.styleSheet) {
|
41
|
-
screenStyleSheet = screenStyleSheet.styleSheet;
|
42
|
-
screenStyleSheet.addRule(this.ns + '\\:*', '{behavior:url(#default#VML)}');
|
43
|
-
screenStyleSheet.addRule(this.ns + '\\:shape', 'position:absolute;');
|
44
|
-
screenStyleSheet.addRule('img.' + this.ns + '_sizeFinder', 'behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;'); /* large negative top value for avoiding vertical scrollbars for large images, suggested by James O'Brien, http://www.thanatopsic.org/hendrik/ */
|
45
|
-
this.screenStyleSheet = screenStyleSheet;
|
46
|
-
|
47
|
-
/* Add a print-media stylesheet, for preventing VML artifacts from showing up in print (including preview). */
|
48
|
-
/* Thanks to R�mi Pr�vost for automating this! */
|
49
|
-
printStyleSheet = document.createElement('style');
|
50
|
-
printStyleSheet.setAttribute('media', 'print');
|
51
|
-
document.documentElement.firstChild.insertBefore(printStyleSheet, document.documentElement.firstChild.firstChild);
|
52
|
-
printStyleSheet = printStyleSheet.styleSheet;
|
53
|
-
printStyleSheet.addRule(this.ns + '\\:*', '{display: none !important;}');
|
54
|
-
printStyleSheet.addRule('img.' + this.ns + '_sizeFinder', '{display: none !important;}');
|
55
|
-
}
|
56
|
-
},
|
57
|
-
readPropertyChange: function () {
|
58
|
-
var el, display, v;
|
59
|
-
el = event.srcElement;
|
60
|
-
if (!el.vmlInitiated) {
|
61
|
-
return;
|
62
|
-
}
|
63
|
-
if (event.propertyName.search('background') != -1 || event.propertyName.search('border') != -1) {
|
64
|
-
DD_belatedPNG.applyVML(el);
|
65
|
-
}
|
66
|
-
if (event.propertyName == 'style.display') {
|
67
|
-
display = (el.currentStyle.display == 'none') ? 'none' : 'block';
|
68
|
-
for (v in el.vml) {
|
69
|
-
if (el.vml.hasOwnProperty(v)) {
|
70
|
-
el.vml[v].shape.style.display = display;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
}
|
74
|
-
if (event.propertyName.search('filter') != -1) {
|
75
|
-
DD_belatedPNG.vmlOpacity(el);
|
76
|
-
}
|
77
|
-
},
|
78
|
-
vmlOpacity: function (el) {
|
79
|
-
if (el.currentStyle.filter.search('lpha') != -1) {
|
80
|
-
var trans = el.currentStyle.filter;
|
81
|
-
trans = parseInt(trans.substring(trans.lastIndexOf('=')+1, trans.lastIndexOf(')')), 10)/100;
|
82
|
-
el.vml.color.shape.style.filter = el.currentStyle.filter; /* complete guesswork */
|
83
|
-
el.vml.image.fill.opacity = trans; /* complete guesswork */
|
84
|
-
}
|
85
|
-
},
|
86
|
-
handlePseudoHover: function (el) {
|
87
|
-
setTimeout(function () { /* wouldn't work as intended without setTimeout */
|
88
|
-
DD_belatedPNG.applyVML(el);
|
89
|
-
}, 1);
|
90
|
-
},
|
91
|
-
/**
|
92
|
-
* This is the method to use in a document.
|
93
|
-
* @param {String} selector - REQUIRED - a CSS selector, such as '#doc .container'
|
94
|
-
**/
|
95
|
-
fix: function (selector) {
|
96
|
-
if (this.screenStyleSheet) {
|
97
|
-
var selectors, i;
|
98
|
-
selectors = selector.split(','); /* multiple selectors supported, no need for multiple calls to this anymore */
|
99
|
-
for (i=0; i<selectors.length; i++) {
|
100
|
-
this.screenStyleSheet.addRule(selectors[i], 'behavior:expression(DD_belatedPNG.fixPng(this))'); /* seems to execute the function without adding it to the stylesheet - interesting... */
|
101
|
-
}
|
102
|
-
}
|
103
|
-
},
|
104
|
-
applyVML: function (el) {
|
105
|
-
el.runtimeStyle.cssText = '';
|
106
|
-
this.vmlFill(el);
|
107
|
-
this.vmlOffsets(el);
|
108
|
-
this.vmlOpacity(el);
|
109
|
-
if (el.isImg) {
|
110
|
-
this.copyImageBorders(el);
|
111
|
-
}
|
112
|
-
},
|
113
|
-
attachHandlers: function (el) {
|
114
|
-
var self, handlers, handler, moreForAs, a, h;
|
115
|
-
self = this;
|
116
|
-
handlers = {resize: 'vmlOffsets', move: 'vmlOffsets'};
|
117
|
-
if (el.nodeName == 'A') {
|
118
|
-
moreForAs = {mouseleave: 'handlePseudoHover', mouseenter: 'handlePseudoHover', focus: 'handlePseudoHover', blur: 'handlePseudoHover'};
|
119
|
-
for (a in moreForAs) {
|
120
|
-
if (moreForAs.hasOwnProperty(a)) {
|
121
|
-
handlers[a] = moreForAs[a];
|
122
|
-
}
|
123
|
-
}
|
124
|
-
}
|
125
|
-
for (h in handlers) {
|
126
|
-
if (handlers.hasOwnProperty(h)) {
|
127
|
-
el.attachEvent('on' + h, handler);
|
128
|
-
}
|
129
|
-
}
|
130
|
-
el.attachEvent('onpropertychange', this.readPropertyChange);
|
131
|
-
},
|
132
|
-
giveLayout: function (el) {
|
133
|
-
el.style.zoom = 1;
|
134
|
-
if (el.currentStyle.position == 'static') {
|
135
|
-
el.style.position = 'relative';
|
136
|
-
}
|
137
|
-
},
|
138
|
-
copyImageBorders: function (el) {
|
139
|
-
var styles, s;
|
140
|
-
styles = {'borderStyle':true, 'borderWidth':true, 'borderColor':true};
|
141
|
-
for (s in styles) {
|
142
|
-
if (styles.hasOwnProperty(s)) {
|
143
|
-
el.vml.color.shape.style[s] = el.currentStyle[s];
|
144
|
-
}
|
145
|
-
}
|
146
|
-
},
|
147
|
-
vmlFill: function (el) {
|
148
|
-
if (!el.currentStyle) {
|
149
|
-
return;
|
150
|
-
} else {
|
151
|
-
var elStyle, noImg, lib, v, img, imgLoaded;
|
152
|
-
elStyle = el.currentStyle;
|
153
|
-
}
|
154
|
-
for (v in el.vml) {
|
155
|
-
if (el.vml.hasOwnProperty(v)) {
|
156
|
-
el.vml[v].shape.style.zIndex = elStyle.zIndex;
|
157
|
-
}
|
158
|
-
}
|
159
|
-
el.runtimeStyle.backgroundColor = '';
|
160
|
-
el.runtimeStyle.backgroundImage = '';
|
161
|
-
noImg = true;
|
162
|
-
if (elStyle.backgroundImage != 'none' || el.isImg) {
|
163
|
-
if (!el.isImg) {
|
164
|
-
el.vmlBg = elStyle.backgroundImage;
|
165
|
-
el.vmlBg = el.vmlBg.substr(5, el.vmlBg.lastIndexOf('")')-5);
|
166
|
-
}
|
167
|
-
else {
|
168
|
-
el.vmlBg = el.src;
|
169
|
-
}
|
170
|
-
lib = this;
|
171
|
-
if (!lib.imgSize[el.vmlBg]) { /* determine size of loaded image */
|
172
|
-
img = document.createElement('img');
|
173
|
-
lib.imgSize[el.vmlBg] = img;
|
174
|
-
img.className = lib.ns + '_sizeFinder';
|
175
|
-
img.runtimeStyle.cssText = 'behavior:none; position:absolute; left:-10000px; top:-10000px; border:none; margin:0; padding:0;'; /* make sure to set behavior to none to prevent accidental matching of the helper elements! */
|
176
|
-
img.attachEvent('onload', imgLoaded);
|
177
|
-
img.src = el.vmlBg;
|
178
|
-
img.removeAttribute('width');
|
179
|
-
img.removeAttribute('height');
|
180
|
-
document.body.insertBefore(img, document.body.firstChild);
|
181
|
-
}
|
182
|
-
el.vml.image.fill.src = el.vmlBg;
|
183
|
-
noImg = false;
|
184
|
-
}
|
185
|
-
el.vml.image.fill.on = !noImg;
|
186
|
-
el.vml.image.fill.color = 'none';
|
187
|
-
el.vml.color.shape.style.backgroundColor = elStyle.backgroundColor;
|
188
|
-
el.runtimeStyle.backgroundImage = 'none';
|
189
|
-
el.runtimeStyle.backgroundColor = 'transparent';
|
190
|
-
},
|
191
|
-
/* IE can't figure out what do when the offsetLeft and the clientLeft add up to 1, and the VML ends up getting fuzzy... so we have to push/enlarge things by 1 pixel and then clip off the excess */
|
192
|
-
vmlOffsets: function (el) {
|
193
|
-
var thisStyle, size, fudge, makeVisible, bg, bgR, dC, altC, b, c, v;
|
194
|
-
thisStyle = el.currentStyle;
|
195
|
-
size = {'W':el.clientWidth+1, 'H':el.clientHeight+1, 'w':this.imgSize[el.vmlBg].width, 'h':this.imgSize[el.vmlBg].height, 'L':el.offsetLeft, 'T':el.offsetTop, 'bLW':el.clientLeft, 'bTW':el.clientTop};
|
196
|
-
fudge = (size.L + size.bLW == 1) ? 1 : 0;
|
197
|
-
/* vml shape, left, top, width, height, origin */
|
198
|
-
makeVisible = function (vml, l, t, w, h, o) {
|
199
|
-
vml.coordsize = w+','+h;
|
200
|
-
vml.coordorigin = o+','+o;
|
201
|
-
vml.path = 'm0,0l'+w+',0l'+w+','+h+'l0,'+h+' xe';
|
202
|
-
vml.style.width = w + 'px';
|
203
|
-
vml.style.height = h + 'px';
|
204
|
-
vml.style.left = l + 'px';
|
205
|
-
vml.style.top = t + 'px';
|
206
|
-
};
|
207
|
-
makeVisible(el.vml.color.shape, (size.L + (el.isImg ? 0 : size.bLW)), (size.T + (el.isImg ? 0 : size.bTW)), (size.W-1), (size.H-1), 0);
|
208
|
-
makeVisible(el.vml.image.shape, (size.L + size.bLW), (size.T + size.bTW), (size.W), (size.H), 1 );
|
209
|
-
bg = {'X':0, 'Y':0};
|
210
|
-
if (el.isImg) {
|
211
|
-
bg.X = parseInt(thisStyle.paddingLeft, 10) + 1;
|
212
|
-
bg.Y = parseInt(thisStyle.paddingTop, 10) + 1;
|
213
|
-
}
|
214
|
-
else {
|
215
|
-
for (b in bg) {
|
216
|
-
if (bg.hasOwnProperty(b)) {
|
217
|
-
this.figurePercentage(bg, size, b, thisStyle['backgroundPosition'+b]);
|
218
|
-
}
|
219
|
-
}
|
220
|
-
}
|
221
|
-
el.vml.image.fill.position = (bg.X/size.W) + ',' + (bg.Y/size.H);
|
222
|
-
bgR = thisStyle.backgroundRepeat;
|
223
|
-
dC = {'T':1, 'R':size.W+fudge, 'B':size.H, 'L':1+fudge}; /* these are defaults for repeat of any kind */
|
224
|
-
altC = { 'X': {'b1': 'L', 'b2': 'R', 'd': 'W'}, 'Y': {'b1': 'T', 'b2': 'B', 'd': 'H'} };
|
225
|
-
if (bgR != 'repeat' || el.isImg) {
|
226
|
-
c = {'T':(bg.Y), 'R':(bg.X+size.w), 'B':(bg.Y+size.h), 'L':(bg.X)}; /* these are defaults for no-repeat - clips down to the image location */
|
227
|
-
if (bgR.search('repeat-') != -1) { /* now let's revert to dC for repeat-x or repeat-y */
|
228
|
-
v = bgR.split('repeat-')[1].toUpperCase();
|
229
|
-
c[altC[v].b1] = 1;
|
230
|
-
c[altC[v].b2] = size[altC[v].d];
|
231
|
-
}
|
232
|
-
if (c.B > size.H) {
|
233
|
-
c.B = size.H;
|
234
|
-
}
|
235
|
-
el.vml.image.shape.style.clip = 'rect('+c.T+'px '+(c.R+fudge)+'px '+c.B+'px '+(c.L+fudge)+'px)';
|
236
|
-
}
|
237
|
-
else {
|
238
|
-
el.vml.image.shape.style.clip = 'rect('+dC.T+'px '+dC.R+'px '+dC.B+'px '+dC.L+'px)';
|
239
|
-
}
|
240
|
-
},
|
241
|
-
fixPng: function (el) {
|
242
|
-
el.style.behavior = 'none';
|
243
|
-
if (el.nodeName == 'BODY' || el.nodeName == 'TD' || el.nodeName == 'TR') { /* elements not supported yet */
|
244
|
-
return;
|
245
|
-
}
|
246
|
-
el.isImg = false;
|
247
|
-
if (el.nodeName == 'IMG') {
|
248
|
-
if(el.src.toLowerCase().search(/\.png$/) != -1) {
|
249
|
-
el.isImg = true;
|
250
|
-
el.style.visibility = 'hidden';
|
251
|
-
}
|
252
|
-
else {
|
253
|
-
return;
|
254
|
-
}
|
255
|
-
}
|
256
|
-
else if (el.currentStyle.backgroundImage.toLowerCase().search('.png') == -1) {
|
257
|
-
return;
|
258
|
-
}
|
259
|
-
lib = DD_belatedPNG;
|
260
|
-
el.vml = {color: {}, image: {}};
|
261
|
-
els = {shape: {}, fill: {}};
|
262
|
-
for (v in el.vml) {
|
263
|
-
if (el.vml.hasOwnProperty(v)) {
|
264
|
-
for (e in els) {
|
265
|
-
if (els.hasOwnProperty(e)) {
|
266
|
-
nodeStr = lib.ns + ':' + e;
|
267
|
-
el.vml[v][e] = document.createElement(nodeStr);
|
268
|
-
}
|
269
|
-
}
|
270
|
-
el.vml[v].shape.stroked = false;
|
271
|
-
el.vml[v].shape.appendChild(el.vml[v].fill);
|
272
|
-
el.parentNode.insertBefore(el.vml[v].shape, el);
|
273
|
-
}
|
274
|
-
}
|
275
|
-
el.vml.image.shape.fillcolor = 'none'; /* Don't show blank white shapeangle when waiting for image to load. */
|
276
|
-
el.vml.image.fill.type = 'tile'; /* Makes image show up. */
|
277
|
-
el.vml.color.fill.on = false; /* Actually going to apply vml element's style.backgroundColor, so hide the whiteness. */
|
278
|
-
lib.attachHandlers(el);
|
279
|
-
lib.giveLayout(el);
|
280
|
-
lib.giveLayout(el.offsetParent);
|
281
|
-
el.vmlInitiated = true;
|
282
|
-
lib.applyVML(el); /* Render! */
|
283
|
-
}
|
284
|
-
};
|
285
|
-
try {
|
286
|
-
document.execCommand("BackgroundImageCache", false, true); /* TredoSoft Multiple IE doesn't like this, so try{} it */
|
287
|
-
} catch(r) {}
|
288
|
-
DD_belatedPNG.createVmlNameSpace();
|
289
|
-
DD_belatedPNG.createVmlStyleSheet();
|