Module: Fog
- Defined in:
- lib/fog/dns/models/aws/zone.rb,
lib/fog.rb,
lib/fog/bin.rb,
lib/fog/cdn.rb,
lib/fog/dns.rb,
lib/fog/aws/elb.rb,
lib/fog/aws/iam.rb,
lib/fog/aws/ses.rb,
lib/fog/cdn/aws.rb,
lib/fog/compute.rb,
lib/fog/dns/aws.rb,
lib/fog/storage.rb,
lib/fog/core/scp.rb,
lib/fog/core/ssh.rb,
lib/fog/core/hmac.rb,
lib/fog/core/mock.rb,
lib/fog/core/time.rb,
lib/fog/providers.rb,
lib/fog/terremark.rb,
lib/fog/core/model.rb,
lib/fog/dns/linode.rb,
lib/fog/dns/zerigo.rb,
lib/fog/compute/aws.rb,
lib/fog/core/errors.rb,
lib/fog/core/parser.rb,
lib/fog/core/parser.rb,
lib/fog/dns/bluebox.rb,
lib/fog/storage/aws.rb,
lib/fog/aws/simpledb.rb,
lib/fog/core/service.rb,
lib/fog/dns/dnsimple.rb,
lib/fog/cdn/rackspace.rb,
lib/fog/compute/voxel.rb,
lib/fog/core/provider.rb,
lib/fog/core/wait_for.rb,
lib/fog/dns/slicehost.rb,
lib/fog/providers/aws.rb,
lib/fog/storage/local.rb,
lib/fog/compute/ecloud.rb,
lib/fog/compute/ecloud.rb,
lib/fog/compute/ecloud.rb,
lib/fog/compute/ecloud.rb,
lib/fog/compute/linode.rb,
lib/fog/storage/google.rb,
lib/fog/compute/bluebox.rb,
lib/fog/compute/go_grid.rb,
lib/fog/core/attributes.rb,
lib/fog/core/collection.rb,
lib/fog/core/connection.rb,
lib/fog/providers/local.rb,
lib/fog/providers/voxel.rb,
lib/fog/core/credentials.rb,
lib/fog/core/deprecation.rb,
lib/fog/providers/ecloud.rb,
lib/fog/providers/google.rb,
lib/fog/providers/linode.rb,
lib/fog/providers/zerigo.rb,
lib/fog/terremark/parser.rb,
lib/fog/terremark/shared.rb,
lib/fog/terremark/vcloud.rb,
lib/fog/compute/brightbox.rb,
lib/fog/compute/rackspace.rb,
lib/fog/compute/slicehost.rb,
lib/fog/providers/bluebox.rb,
lib/fog/providers/go_grid.rb,
lib/fog/storage/rackspace.rb,
lib/fog/providers/dnsimple.rb,
lib/fog/compute/new_servers.rb,
lib/fog/providers/brightbox.rb,
lib/fog/providers/rackspace.rb,
lib/fog/providers/slicehost.rb,
lib/fog/dns/models/aws/zones.rb,
lib/fog/aws/parsers/iam/basic.rb,
lib/fog/dns/models/aws/record.rb,
lib/fog/providers/new_servers.rb,
lib/fog/compute/models/aws/tag.rb,
lib/fog/dns/models/aws/records.rb,
lib/fog/dns/models/linode/zone.rb,
lib/fog/dns/models/zerigo/zone.rb,
lib/fog/compute/models/aws/tags.rb,
lib/fog/dns/models/bluebox/zone.rb,
lib/fog/dns/models/linode/zones.rb,
lib/fog/dns/models/zerigo/zones.rb,
lib/fog/storage/models/aws/file.rb,
lib/fog/aws/parsers/iam/get_user.rb,
lib/fog/compute/models/aws/image.rb,
lib/fog/compute/models/ecloud/ip.rb,
lib/fog/dns/models/bluebox/zones.rb,
lib/fog/dns/models/dnsimple/zone.rb,
lib/fog/dns/models/linode/record.rb,
lib/fog/dns/models/zerigo/record.rb,
lib/fog/storage/models/aws/files.rb,
lib/fog/aws/parsers/iam/get_group.rb,
lib/fog/aws/requests/iam/get_user.rb,
lib/fog/compute/models/aws/flavor.rb,
lib/fog/compute/models/aws/images.rb,
lib/fog/compute/models/aws/server.rb,
lib/fog/compute/models/aws/volume.rb,
lib/fog/compute/models/ecloud/ips.rb,
lib/fog/compute/models/ecloud/vdc.rb,
lib/fog/compute/parsers/aws/basic.rb,
lib/fog/dns/models/bluebox/record.rb,
lib/fog/dns/models/dnsimple/zones.rb,
lib/fog/dns/models/linode/records.rb,
lib/fog/dns/models/slicehost/zone.rb,
lib/fog/dns/models/zerigo/records.rb,
lib/fog/storage/models/local/file.rb,
lib/fog/aws/parsers/iam/list_users.rb,
lib/fog/aws/parsers/ses/send_email.rb,
lib/fog/aws/parsers/simpledb/basic.rb,
lib/fog/aws/requests/iam/get_group.rb,
lib/fog/compute/models/aws/address.rb,
lib/fog/compute/models/aws/flavors.rb,
lib/fog/compute/models/aws/servers.rb,
lib/fog/compute/models/aws/volumes.rb,
lib/fog/compute/models/ecloud/node.rb,
lib/fog/compute/models/ecloud/task.rb,
lib/fog/compute/models/ecloud/vdcs.rb,
lib/fog/compute/models/voxel/image.rb,
lib/fog/dns/models/bluebox/records.rb,
lib/fog/dns/models/dnsimple/record.rb,
lib/fog/dns/models/slicehost/zones.rb,
lib/fog/dns/parsers/aws/get_change.rb,
lib/fog/storage/models/google/file.rb,
lib/fog/storage/models/local/files.rb,
lib/fog/aws/parsers/iam/create_user.rb,
lib/fog/aws/parsers/iam/list_groups.rb,
lib/fog/aws/parsers/iam/update_user.rb,
lib/fog/aws/parsers/simpledb/select.rb,
lib/fog/aws/requests/iam/list_users.rb,
lib/fog/aws/requests/ses/send_email.rb,
lib/fog/compute/models/aws/key_pair.rb,
lib/fog/compute/models/aws/snapshot.rb,
lib/fog/compute/models/ecloud/nodes.rb,
lib/fog/compute/models/ecloud/tasks.rb,
lib/fog/compute/models/voxel/images.rb,
lib/fog/compute/models/voxel/server.rb,
lib/fog/compute/parsers/voxel/basic.rb,
lib/fog/dns/models/dnsimple/records.rb,
lib/fog/dns/models/slicehost/record.rb,
lib/fog/dns/parsers/zerigo/get_host.rb,
lib/fog/dns/parsers/zerigo/get_zone.rb,
lib/fog/dns/requests/aws/get_change.rb,
lib/fog/storage/models/google/files.rb,
lib/fog/terremark/models/shared/vdc.rb,
lib/fog/aws/parsers/iam/create_group.rb,
lib/fog/aws/parsers/iam/update_group.rb,
lib/fog/aws/requests/iam/create_user.rb,
lib/fog/aws/requests/iam/delete_user.rb,
lib/fog/aws/requests/iam/list_groups.rb,
lib/fog/aws/requests/iam/update_user.rb,
lib/fog/aws/requests/simpledb/select.rb,
lib/fog/cdn/parsers/aws/distribution.rb,
lib/fog/compute/models/aws/addresses.rb,
lib/fog/compute/models/aws/key_pairs.rb,
lib/fog/compute/models/aws/snapshots.rb,
lib/fog/compute/models/bluebox/image.rb,
lib/fog/compute/models/ecloud/server.rb,
lib/fog/compute/models/go_grid/image.rb,
lib/fog/compute/models/voxel/servers.rb,
lib/fog/dns/models/slicehost/records.rb,
lib/fog/dns/parsers/bluebox/get_zone.rb,
lib/fog/dns/requests/zerigo/get_host.rb,
lib/fog/dns/requests/zerigo/get_zone.rb,
lib/fog/storage/models/aws/directory.rb,
lib/fog/terremark/models/shared/task.rb,
lib/fog/terremark/models/shared/vdcs.rb,
lib/fog/aws/parsers/iam/list_policies.rb,
lib/fog/aws/requests/iam/create_group.rb,
lib/fog/aws/requests/iam/delete_group.rb,
lib/fog/aws/requests/iam/update_group.rb,
lib/fog/compute/models/bluebox/flavor.rb,
lib/fog/compute/models/bluebox/images.rb,
lib/fog/compute/models/bluebox/server.rb,
lib/fog/compute/models/brightbox/user.rb,
lib/fog/compute/models/brightbox/zone.rb,
lib/fog/compute/models/ecloud/catalog.rb,
lib/fog/compute/models/ecloud/network.rb,
lib/fog/compute/models/ecloud/servers.rb,
lib/fog/compute/models/go_grid/images.rb,
lib/fog/compute/models/go_grid/server.rb,
lib/fog/compute/requests/ecloud/login.rb,
lib/fog/dns/parsers/bluebox/get_zones.rb,
lib/fog/dns/parsers/zerigo/find_hosts.rb,
lib/fog/dns/parsers/zerigo/list_hosts.rb,
lib/fog/dns/parsers/zerigo/list_zones.rb,
lib/fog/dns/requests/bluebox/get_zone.rb,
lib/fog/storage/models/rackspace/file.rb,
lib/fog/terremark/models/shared/tasks.rb,
lib/fog/terremark/parsers/shared/task.rb,
lib/fog/terremark/parsers/shared/vapp.rb,
lib/fog/aws/parsers/ses/get_send_quota.rb,
lib/fog/aws/parsers/ses/send_raw_email.rb,
lib/fog/compute/models/bluebox/flavors.rb,
lib/fog/compute/models/bluebox/servers.rb,
lib/fog/compute/models/brightbox/image.rb,
lib/fog/compute/models/brightbox/users.rb,
lib/fog/compute/models/brightbox/zones.rb,
lib/fog/compute/models/ecloud/networks.rb,
lib/fog/compute/models/go_grid/servers.rb,
lib/fog/compute/models/rackspace/image.rb,
lib/fog/compute/models/slicehost/image.rb,
lib/fog/dns/parsers/bluebox/get_record.rb,
lib/fog/dns/parsers/slicehost/get_zone.rb,
lib/fog/dns/parsers/zerigo/count_hosts.rb,
lib/fog/dns/parsers/zerigo/count_zones.rb,
lib/fog/dns/parsers/zerigo/create_host.rb,
lib/fog/dns/parsers/zerigo/create_zone.rb,
lib/fog/dns/requests/bluebox/get_zones.rb,
lib/fog/dns/requests/zerigo/find_hosts.rb,
lib/fog/dns/requests/zerigo/list_hosts.rb,
lib/fog/dns/requests/zerigo/list_zones.rb,
lib/fog/storage/models/aws/directories.rb,
lib/fog/storage/models/local/directory.rb,
lib/fog/storage/models/rackspace/files.rb,
lib/fog/storage/parsers/aws/get_bucket.rb,
lib/fog/storage/parsers/aws/list_parts.rb,
lib/fog/terremark/models/shared/server.rb,
lib/fog/aws/parsers/iam/get_user_policy.rb,
lib/fog/aws/requests/ses/get_send_quota.rb,
lib/fog/aws/requests/ses/send_raw_email.rb,
lib/fog/compute/models/brightbox/flavor.rb,
lib/fog/compute/models/brightbox/images.rb,
lib/fog/compute/models/brightbox/server.rb,
lib/fog/compute/models/ecloud/public_ip.rb,
lib/fog/compute/models/go_grid/password.rb,
lib/fog/compute/models/rackspace/flavor.rb,
lib/fog/compute/models/rackspace/images.rb,
lib/fog/compute/models/rackspace/server.rb,
lib/fog/compute/models/slicehost/flavor.rb,
lib/fog/compute/models/slicehost/images.rb,
lib/fog/compute/models/slicehost/server.rb,
lib/fog/compute/requests/ecloud/get_vdc.rb,
lib/fog/dns/parsers/aws/get_hosted_zone.rb,
lib/fog/dns/parsers/bluebox/create_zone.rb,
lib/fog/dns/parsers/bluebox/get_records.rb,
lib/fog/dns/parsers/slicehost/get_zones.rb,
lib/fog/dns/requests/bluebox/get_record.rb,
lib/fog/dns/requests/linode/domain_list.rb,
lib/fog/dns/requests/slicehost/get_zone.rb,
lib/fog/dns/requests/zerigo/count_hosts.rb,
lib/fog/dns/requests/zerigo/count_zones.rb,
lib/fog/dns/requests/zerigo/create_host.rb,
lib/fog/dns/requests/zerigo/create_zone.rb,
lib/fog/dns/requests/zerigo/delete_host.rb,
lib/fog/dns/requests/zerigo/delete_zone.rb,
lib/fog/dns/requests/zerigo/update_host.rb,
lib/fog/dns/requests/zerigo/update_zone.rb,
lib/fog/storage/models/google/directory.rb,
lib/fog/storage/parsers/aws/copy_object.rb,
lib/fog/storage/parsers/aws/get_service.rb,
lib/fog/storage/requests/aws/get_bucket.rb,
lib/fog/storage/requests/aws/get_object.rb,
lib/fog/storage/requests/aws/list_parts.rb,
lib/fog/storage/requests/aws/put_bucket.rb,
lib/fog/storage/requests/aws/put_object.rb,
lib/fog/storage/requests/aws/sync_clock.rb,
lib/fog/terremark/models/shared/address.rb,
lib/fog/terremark/models/shared/network.rb,
lib/fog/terremark/models/shared/servers.rb,
lib/fog/aws/parsers/iam/list_access_keys.rb,
lib/fog/aws/requests/iam/get_user_policy.rb,
lib/fog/aws/requests/iam/put_user_policy.rb,
lib/fog/compute/models/brightbox/account.rb,
lib/fog/compute/models/brightbox/flavors.rb,
lib/fog/compute/models/brightbox/servers.rb,
lib/fog/compute/models/ecloud/public_ips.rb,
lib/fog/compute/models/go_grid/passwords.rb,
lib/fog/compute/models/rackspace/flavors.rb,
lib/fog/compute/models/rackspace/servers.rb,
lib/fog/compute/models/slicehost/flavors.rb,
lib/fog/compute/models/slicehost/servers.rb,
lib/fog/compute/parsers/aws/create_image.rb,
lib/fog/compute/requests/aws/create_tags.rb,
lib/fog/compute/requests/aws/delete_tags.rb,
lib/fog/compute/requests/ecloud/add_node.rb,
lib/fog/compute/requests/ecloud/get_node.rb,
lib/fog/compute/requests/ecloud/get_task.rb,
lib/fog/compute/requests/ecloud/get_vapp.rb,
lib/fog/compute/requests/ecloud/power_on.rb,
lib/fog/dns/parsers/slicehost/get_record.rb,
lib/fog/dns/requests/aws/get_hosted_zone.rb,
lib/fog/dns/requests/bluebox/create_zone.rb,
lib/fog/dns/requests/bluebox/delete_zone.rb,
lib/fog/dns/requests/bluebox/get_records.rb,
lib/fog/dns/requests/bluebox/update_zone.rb,
lib/fog/dns/requests/dnsimple/get_domain.rb,
lib/fog/dns/requests/slicehost/get_zones.rb,
lib/fog/storage/models/local/directories.rb,
lib/fog/storage/requests/aws/copy_object.rb,
lib/fog/storage/requests/aws/get_service.rb,
lib/fog/storage/requests/aws/head_object.rb,
lib/fog/storage/requests/aws/upload_part.rb,
lib/fog/terremark/models/shared/networks.rb,
lib/fog/terremark/parsers/shared/get_vdc.rb,
lib/fog/terremark/parsers/shared/network.rb,
lib/fog/aws/parsers/iam/create_access_key.rb,
lib/fog/aws/parsers/simpledb/list_domains.rb,
lib/fog/aws/requests/iam/list_access_keys.rb,
lib/fog/aws/requests/iam/put_group_policy.rb,
lib/fog/cdn/parsers/aws/post_invalidation.rb,
lib/fog/cdn/requests/aws/get_distribution.rb,
lib/fog/compute/models/aws/security_group.rb,
lib/fog/compute/models/brightbox/cloud_ip.rb,
lib/fog/compute/parsers/aws/attach_volume.rb,
lib/fog/compute/parsers/aws/create_volume.rb,
lib/fog/compute/parsers/aws/describe_tags.rb,
lib/fog/compute/parsers/aws/detach_volume.rb,
lib/fog/compute/parsers/aws/run_instances.rb,
lib/fog/compute/parsers/voxel/images_list.rb,
lib/fog/compute/requests/aws/create_image.rb,
lib/fog/compute/requests/ecloud/get_nodes.rb,
lib/fog/compute/requests/ecloud/power_off.rb,
lib/fog/dns/parsers/aws/list_hosted_zones.rb,
lib/fog/dns/parsers/bluebox/create_record.rb,
lib/fog/dns/parsers/slicehost/create_zone.rb,
lib/fog/dns/parsers/slicehost/get_records.rb,
lib/fog/dns/parsers/zerigo/get_zone_stats.rb,
lib/fog/dns/requests/linode/domain_create.rb,
lib/fog/dns/requests/linode/domain_delete.rb,
lib/fog/dns/requests/linode/domain_update.rb,
lib/fog/dns/requests/slicehost/get_record.rb,
lib/fog/storage/models/google/directories.rb,
lib/fog/storage/parsers/google/get_bucket.rb,
lib/fog/terremark/models/shared/addresses.rb,
lib/fog/terremark/requests/shared/get_vdc.rb,
lib/fog/aws/requests/iam/add_user_to_group.rb,
lib/fog/aws/requests/iam/create_access_key.rb,
lib/fog/aws/requests/iam/delete_access_key.rb,
lib/fog/aws/requests/iam/update_access_key.rb,
lib/fog/aws/requests/simpledb/list_domains.rb,
lib/fog/cdn/requests/aws/post_distribution.rb,
lib/fog/cdn/requests/aws/post_invalidation.rb,
lib/fog/compute/models/aws/security_groups.rb,
lib/fog/compute/models/brightbox/cloud_ips.rb,
lib/fog/compute/models/ecloud/catalog_item.rb,
lib/fog/compute/models/ecloud/firewall_acl.rb,
lib/fog/compute/parsers/aws/register_image.rb,
lib/fog/compute/parsers/voxel/devices_list.rb,
lib/fog/compute/requests/aws/attach_volume.rb,
lib/fog/compute/requests/aws/create_volume.rb,
lib/fog/compute/requests/aws/delete_volume.rb,
lib/fog/compute/requests/aws/describe_tags.rb,
lib/fog/compute/requests/aws/detach_volume.rb,
lib/fog/compute/requests/aws/run_instances.rb,
lib/fog/compute/requests/bluebox/get_block.rb,
lib/fog/compute/requests/ecloud/clone_vapp.rb,
lib/fog/compute/requests/voxel/images_list.rb,
lib/fog/dns/parsers/aws/create_hosted_zone.rb,
lib/fog/dns/parsers/aws/delete_hosted_zone.rb,
lib/fog/dns/requests/aws/list_hosted_zones.rb,
lib/fog/dns/requests/bluebox/create_record.rb,
lib/fog/dns/requests/bluebox/delete_record.rb,
lib/fog/dns/requests/bluebox/update_record.rb,
lib/fog/dns/requests/dnsimple/list_domains.rb,
lib/fog/dns/requests/dnsimple/list_records.rb,
lib/fog/dns/requests/slicehost/create_zone.rb,
lib/fog/dns/requests/slicehost/delete_zone.rb,
lib/fog/dns/requests/slicehost/get_records.rb,
lib/fog/dns/requests/zerigo/get_zone_stats.rb,
lib/fog/storage/models/rackspace/directory.rb,
lib/fog/storage/parsers/google/copy_object.rb,
lib/fog/storage/parsers/google/get_service.rb,
lib/fog/storage/requests/aws/delete_bucket.rb,
lib/fog/storage/requests/aws/delete_object.rb,
lib/fog/storage/requests/google/get_bucket.rb,
lib/fog/storage/requests/google/get_object.rb,
lib/fog/storage/requests/google/put_bucket.rb,
lib/fog/storage/requests/google/put_object.rb,
lib/fog/terremark/parsers/shared/public_ip.rb,
lib/fog/terremark/requests/shared/get_task.rb,
lib/fog/terremark/requests/shared/get_vapp.rb,
lib/fog/terremark/requests/shared/power_on.rb,
lib/fog/aws/parsers/ses/get_send_statistics.rb,
lib/fog/aws/parsers/simpledb/get_attributes.rb,
lib/fog/aws/requests/iam/delete_user_policy.rb,
lib/fog/aws/requests/iam/list_user_policies.rb,
lib/fog/aws/requests/simpledb/create_domain.rb,
lib/fog/aws/requests/simpledb/delete_domain.rb,
lib/fog/compute/models/ecloud/firewall_acls.rb,
lib/fog/compute/parsers/aws/create_key_pair.rb,
lib/fog/compute/parsers/aws/create_snapshot.rb,
lib/fog/compute/parsers/aws/describe_images.rb,
lib/fog/compute/parsers/aws/import_key_pair.rb,
lib/fog/compute/parsers/slicehost/get_image.rb,
lib/fog/compute/parsers/slicehost/get_slice.rb,
lib/fog/compute/requests/aws/register_image.rb,
lib/fog/compute/requests/aws/stop_instances.rb,
lib/fog/compute/requests/bluebox/get_blocks.rb,
lib/fog/compute/requests/brightbox/get_user.rb,
lib/fog/compute/requests/brightbox/get_zone.rb,
lib/fog/compute/requests/ecloud/delete_node.rb,
lib/fog/compute/requests/ecloud/delete_vapp.rb,
lib/fog/compute/requests/ecloud/get_catalog.rb,
lib/fog/compute/requests/ecloud/get_network.rb,
lib/fog/compute/requests/ecloud/power_reset.rb,
lib/fog/compute/requests/linode/linode_list.rb,
lib/fog/compute/requests/voxel/devices_list.rb,
lib/fog/dns/parsers/slicehost/create_record.rb,
lib/fog/dns/requests/aws/create_hosted_zone.rb,
lib/fog/dns/requests/aws/delete_hosted_zone.rb,
lib/fog/dns/requests/dnsimple/create_domain.rb,
lib/fog/dns/requests/dnsimple/create_record.rb,
lib/fog/dns/requests/dnsimple/delete_domain.rb,
lib/fog/dns/requests/dnsimple/delete_record.rb,
lib/fog/dns/requests/dnsimple/update_record.rb,
lib/fog/storage/requests/aws/get_bucket_acl.rb,
lib/fog/storage/requests/aws/get_object_acl.rb,
lib/fog/storage/requests/aws/get_object_url.rb,
lib/fog/storage/requests/aws/put_bucket_acl.rb,
lib/fog/storage/requests/aws/put_object_acl.rb,
lib/fog/storage/requests/aws/put_object_url.rb,
lib/fog/storage/requests/google/copy_object.rb,
lib/fog/storage/requests/google/get_service.rb,
lib/fog/storage/requests/google/head_object.rb,
lib/fog/terremark/requests/shared/power_off.rb,
lib/fog/aws/parsers/elb/create_load_balancer.rb,
lib/fog/aws/parsers/elb/delete_load_balancer.rb,
lib/fog/aws/parsers/iam/list_groups_for_user.rb,
lib/fog/aws/parsers/ses/verify_email_address.rb,
lib/fog/aws/parsers/simpledb/domain_metadata.rb,
lib/fog/aws/requests/iam/delete_group_policy.rb,
lib/fog/aws/requests/iam/list_group_policies.rb,
lib/fog/aws/requests/ses/get_send_statistics.rb,
lib/fog/aws/requests/simpledb/get_attributes.rb,
lib/fog/aws/requests/simpledb/put_attributes.rb,
lib/fog/cdn/requests/aws/delete_distribution.rb,
lib/fog/cdn/requests/rackspace/put_container.rb,
lib/fog/compute/parsers/aws/allocate_address.rb,
lib/fog/compute/parsers/aws/deregister_image.rb,
lib/fog/compute/parsers/aws/describe_regions.rb,
lib/fog/compute/parsers/aws/describe_volumes.rb,
lib/fog/compute/parsers/slicehost/get_flavor.rb,
lib/fog/compute/parsers/slicehost/get_images.rb,
lib/fog/compute/parsers/slicehost/get_slices.rb,
lib/fog/compute/requests/aws/create_key_pair.rb,
lib/fog/compute/requests/aws/create_snapshot.rb,
lib/fog/compute/requests/aws/delete_key_pair.rb,
lib/fog/compute/requests/aws/delete_snapshot.rb,
lib/fog/compute/requests/aws/describe_images.rb,
lib/fog/compute/requests/aws/import_key_pair.rb,
lib/fog/compute/requests/aws/release_address.rb,
lib/fog/compute/requests/aws/start_instances.rb,
lib/fog/compute/requests/bluebox/get_product.rb,
lib/fog/compute/requests/brightbox/get_image.rb,
lib/fog/compute/requests/ecloud/get_versions.rb,
lib/fog/compute/requests/slicehost/get_image.rb,
lib/fog/compute/requests/slicehost/get_slice.rb,
lib/fog/compute/requests/voxel/devices_power.rb,
lib/fog/dns/requests/slicehost/create_record.rb,
lib/fog/dns/requests/slicehost/delete_record.rb,
lib/fog/storage/models/rackspace/directories.rb,
lib/fog/terremark/parsers/shared/get_catalog.rb,
lib/fog/aws/requests/elb/create_load_balancer.rb,
lib/fog/aws/requests/elb/delete_load_balancer.rb,
lib/fog/aws/requests/iam/list_groups_for_user.rb,
lib/fog/aws/requests/ses/verify_email_address.rb,
lib/fog/aws/requests/simpledb/domain_metadata.rb,
lib/fog/cdn/parsers/aws/get_distribution_list.rb,
lib/fog/cdn/requests/rackspace/get_containers.rb,
lib/fog/cdn/requests/rackspace/head_container.rb,
lib/fog/compute/parsers/slicehost/get_backups.rb,
lib/fog/compute/parsers/slicehost/get_flavors.rb,
lib/fog/compute/parsers/voxel/voxcloud_create.rb,
lib/fog/compute/parsers/voxel/voxcloud_delete.rb,
lib/fog/compute/parsers/voxel/voxcloud_status.rb,
lib/fog/compute/requests/aws/allocate_address.rb,
lib/fog/compute/requests/aws/deregister_image.rb,
lib/fog/compute/requests/aws/describe_regions.rb,
lib/fog/compute/requests/aws/describe_volumes.rb,
lib/fog/compute/requests/aws/reboot_instances.rb,
lib/fog/compute/requests/bluebox/create_block.rb,
lib/fog/compute/requests/bluebox/get_products.rb,
lib/fog/compute/requests/bluebox/get_template.rb,
lib/fog/compute/requests/bluebox/reboot_block.rb,
lib/fog/compute/requests/brightbox/get_server.rb,
lib/fog/compute/requests/brightbox/list_users.rb,
lib/fog/compute/requests/brightbox/list_zones.rb,
lib/fog/compute/requests/ecloud/get_public_ip.rb,
lib/fog/compute/requests/ecloud/get_task_list.rb,
lib/fog/compute/requests/go_grid/grid_ip_list.rb,
lib/fog/compute/requests/linode/avail_kernels.rb,
lib/fog/compute/requests/linode/linode_create.rb,
lib/fog/compute/requests/linode/linode_delete.rb,
lib/fog/compute/requests/linode/linode_reboot.rb,
lib/fog/compute/requests/slicehost/get_flavor.rb,
lib/fog/compute/requests/slicehost/get_images.rb,
lib/fog/compute/requests/slicehost/get_slices.rb,
lib/fog/storage/requests/google/delete_bucket.rb,
lib/fog/storage/requests/google/delete_object.rb,
lib/fog/storage/requests/rackspace/get_object.rb,
lib/fog/storage/requests/rackspace/put_object.rb,
lib/fog/terremark/parsers/shared/node_service.rb,
lib/fog/terremark/requests/shared/delete_vapp.rb,
lib/fog/terremark/requests/shared/deploy_vapp.rb,
lib/fog/terremark/requests/shared/get_catalog.rb,
lib/fog/terremark/requests/shared/get_network.rb,
lib/fog/terremark/requests/shared/power_reset.rb,
lib/fog/cdn/requests/aws/get_distribution_list.rb,
lib/fog/compute/models/brightbox/load_balancer.rb,
lib/fog/compute/models/ecloud/internet_service.rb,
lib/fog/compute/parsers/aws/describe_addresses.rb,
lib/fog/compute/parsers/aws/describe_instances.rb,
lib/fog/compute/parsers/aws/describe_key_pairs.rb,
lib/fog/compute/parsers/aws/describe_snapshots.rb,
lib/fog/compute/parsers/aws/get_console_output.rb,
lib/fog/compute/parsers/slicehost/create_slice.rb,
lib/fog/compute/requests/aws/associate_address.rb,
lib/fog/compute/requests/bluebox/destroy_block.rb,
lib/fog/compute/requests/bluebox/get_templates.rb,
lib/fog/compute/requests/brightbox/get_account.rb,
lib/fog/compute/requests/brightbox/list_images.rb,
lib/fog/compute/requests/brightbox/stop_server.rb,
lib/fog/compute/requests/brightbox/update_user.rb,
lib/fog/compute/requests/ecloud/configure_node.rb,
lib/fog/compute/requests/ecloud/configure_vapp.rb,
lib/fog/compute/requests/ecloud/get_network_ip.rb,
lib/fog/compute/requests/ecloud/get_public_ips.rb,
lib/fog/compute/requests/ecloud/power_shutdown.rb,
lib/fog/compute/requests/rackspace/list_images.rb,
lib/fog/compute/requests/slicehost/get_backups.rb,
lib/fog/compute/requests/slicehost/get_flavors.rb,
lib/fog/compute/requests/voxel/voxcloud_create.rb,
lib/fog/compute/requests/voxel/voxcloud_delete.rb,
lib/fog/compute/requests/voxel/voxcloud_status.rb,
lib/fog/storage/parsers/aws/get_bucket_logging.rb,
lib/fog/storage/parsers/aws/get_bucket_website.rb,
lib/fog/storage/requests/google/get_bucket_acl.rb,
lib/fog/storage/requests/google/get_object_acl.rb,
lib/fog/storage/requests/google/get_object_url.rb,
lib/fog/storage/requests/google/put_bucket_acl.rb,
lib/fog/storage/requests/google/put_object_url.rb,
lib/fog/storage/requests/rackspace/head_object.rb,
lib/fog/aws/parsers/elb/describe_load_balancers.rb,
lib/fog/aws/requests/iam/remove_user_from_group.rb,
lib/fog/aws/requests/simpledb/delete_attributes.rb,
lib/fog/compute/models/brightbox/load_balancers.rb,
lib/fog/compute/models/ecloud/internet_services.rb,
lib/fog/compute/parsers/aws/terminate_instances.rb,
lib/fog/compute/requests/aws/describe_addresses.rb,
lib/fog/compute/requests/aws/describe_instances.rb,
lib/fog/compute/requests/aws/describe_key_pairs.rb,
lib/fog/compute/requests/aws/describe_snapshots.rb,
lib/fog/compute/requests/aws/get_console_output.rb,
lib/fog/compute/requests/brightbox/create_image.rb,
lib/fog/compute/requests/brightbox/get_cloud_ip.rb,
lib/fog/compute/requests/brightbox/list_servers.rb,
lib/fog/compute/requests/brightbox/map_cloud_ip.rb,
lib/fog/compute/requests/brightbox/start_server.rb,
lib/fog/compute/requests/brightbox/update_image.rb,
lib/fog/compute/requests/ecloud/get_network_ips.rb,
lib/fog/compute/requests/go_grid/grid_image_get.rb,
lib/fog/compute/requests/new_servers/add_server.rb,
lib/fog/compute/requests/new_servers/get_server.rb,
lib/fog/compute/requests/new_servers/list_plans.rb,
lib/fog/compute/requests/rackspace/create_image.rb,
lib/fog/compute/requests/rackspace/delete_image.rb,
lib/fog/compute/requests/rackspace/list_flavors.rb,
lib/fog/compute/requests/rackspace/list_servers.rb,
lib/fog/compute/requests/slicehost/create_slice.rb,
lib/fog/compute/requests/slicehost/delete_slice.rb,
lib/fog/compute/requests/slicehost/reboot_slice.rb,
lib/fog/storage/parsers/aws/access_control_list.rb,
lib/fog/storage/parsers/aws/get_bucket_location.rb,
lib/fog/storage/parsers/aws/get_request_payment.rb,
lib/fog/storage/requests/aws/get_bucket_logging.rb,
lib/fog/storage/requests/aws/get_bucket_website.rb,
lib/fog/storage/requests/aws/get_object_torrent.rb,
lib/fog/storage/requests/aws/put_bucket_logging.rb,
lib/fog/storage/requests/aws/put_bucket_website.rb,
lib/fog/terremark/parsers/shared/get_public_ips.rb,
lib/fog/terremark/parsers/shared/get_tasks_list.rb,
lib/fog/terremark/requests/shared/get_public_ip.rb,
lib/fog/aws/parsers/elb/describe_instance_health.rb,
lib/fog/aws/requests/elb/describe_load_balancers.rb,
lib/fog/cdn/requests/aws/put_distribution_config.rb,
lib/fog/compute/parsers/aws/start_stop_instances.rb,
lib/fog/compute/requests/aws/terminate_instances.rb,
lib/fog/compute/requests/brightbox/create_server.rb,
lib/fog/compute/requests/brightbox/destroy_image.rb,
lib/fog/compute/requests/brightbox/get_interface.rb,
lib/fog/compute/requests/brightbox/resize_server.rb,
lib/fog/compute/requests/brightbox/update_server.rb,
lib/fog/compute/requests/ecloud/get_catalog_item.rb,
lib/fog/compute/requests/ecloud/get_firewall_acl.rb,
lib/fog/compute/requests/ecloud/get_organization.rb,
lib/fog/compute/requests/go_grid/grid_image_list.rb,
lib/fog/compute/requests/go_grid/grid_server_add.rb,
lib/fog/compute/requests/go_grid/grid_server_get.rb,
lib/fog/compute/requests/new_servers/list_images.rb,
lib/fog/compute/requests/rackspace/create_server.rb,
lib/fog/compute/requests/rackspace/delete_server.rb,
lib/fog/compute/requests/rackspace/reboot_server.rb,
lib/fog/compute/requests/rackspace/resize_server.rb,
lib/fog/compute/requests/rackspace/server_action.rb,
lib/fog/compute/requests/rackspace/update_server.rb,
lib/fog/dns/requests/linode/domain_resource_list.rb,
lib/fog/storage/requests/aws/get_bucket_location.rb,
lib/fog/storage/requests/aws/get_request_payment.rb,
lib/fog/storage/requests/aws/put_request_payment.rb,
lib/fog/storage/requests/rackspace/delete_object.rb,
lib/fog/storage/requests/rackspace/get_container.rb,
lib/fog/storage/requests/rackspace/put_container.rb,
lib/fog/terremark/parsers/shared/get_network_ips.rb,
lib/fog/terremark/requests/shared/get_public_ips.rb,
lib/fog/terremark/requests/shared/get_tasks_list.rb,
lib/fog/terremark/requests/shared/power_shutdown.rb,
lib/fog/aws/parsers/iam/list_signing_certificates.rb,
lib/fog/aws/requests/elb/describe_instance_health.rb,
lib/fog/compute/requests/aws/disassociate_address.rb,
lib/fog/compute/requests/brightbox/destroy_server.rb,
lib/fog/compute/requests/brightbox/get_api_client.rb,
lib/fog/compute/requests/brightbox/list_cloud_ips.rb,
lib/fog/compute/requests/brightbox/unmap_cloud_ip.rb,
lib/fog/compute/requests/brightbox/update_account.rb,
lib/fog/compute/requests/ecloud/configure_network.rb,
lib/fog/compute/requests/ecloud/get_firewall_acls.rb,
lib/fog/compute/requests/ecloud/get_vapp_template.rb,
lib/fog/compute/requests/go_grid/grid_server_list.rb,
lib/fog/compute/requests/linode/avail_datacenters.rb,
lib/fog/compute/requests/linode/avail_linodeplans.rb,
lib/fog/compute/requests/new_servers/list_servers.rb,
lib/fog/compute/requests/rackspace/list_addresses.rb,
lib/fog/dns/parsers/aws/list_resource_record_sets.rb,
lib/fog/storage/parsers/aws/get_bucket_versioning.rb,
lib/fog/storage/parsers/google/get_bucket_logging.rb,
lib/fog/storage/requests/rackspace/get_containers.rb,
lib/fog/storage/requests/rackspace/head_container.rb,
lib/fog/terremark/parsers/shared/get_catalog_item.rb,
lib/fog/terremark/parsers/shared/get_organization.rb,
lib/fog/terremark/parsers/shared/internet_service.rb,
lib/fog/terremark/requests/shared/get_network_ips.rb,
lib/fog/aws/parsers/iam/upload_signing_certificate.rb,
lib/fog/aws/requests/iam/list_signing_certificates.rb,
lib/fog/aws/requests/simpledb/batch_put_attributes.rb,
lib/fog/compute/requests/aws/create_security_group.rb,
lib/fog/compute/requests/aws/delete_security_group.rb,
lib/fog/compute/requests/brightbox/create_cloud_ip.rb,
lib/fog/compute/requests/brightbox/get_server_type.rb,
lib/fog/compute/requests/brightbox/shutdown_server.rb,
lib/fog/compute/requests/brightbox/snapshot_server.rb,
lib/fog/compute/requests/go_grid/grid_server_power.rb,
lib/fog/compute/requests/linode/avail_stackscripts.rb,
lib/fog/compute/requests/new_servers/cancel_server.rb,
lib/fog/compute/requests/new_servers/reboot_server.rb,
lib/fog/dns/requests/aws/list_resource_record_sets.rb,
lib/fog/dns/requests/linode/domain_resource_create.rb,
lib/fog/dns/requests/linode/domain_resource_delete.rb,
lib/fog/dns/requests/linode/domain_resource_update.rb,
lib/fog/storage/parsers/aws/list_multipart_uploads.rb,
lib/fog/storage/parsers/google/access_control_list.rb,
lib/fog/storage/parsers/google/get_request_payment.rb,
lib/fog/storage/requests/aws/delete_bucket_website.rb,
lib/fog/storage/requests/aws/get_bucket_versioning.rb,
lib/fog/storage/requests/aws/put_bucket_versioning.rb,
lib/fog/storage/requests/google/get_object_torrent.rb,
lib/fog/storage/requests/rackspace/head_containers.rb,
lib/fog/terremark/parsers/shared/get_node_services.rb,
lib/fog/terremark/parsers/shared/get_organizations.rb,
lib/fog/terremark/parsers/shared/get_vapp_template.rb,
lib/fog/terremark/requests/shared/add_node_service.rb,
lib/fog/terremark/requests/shared/delete_public_ip.rb,
lib/fog/terremark/requests/shared/get_catalog_item.rb,
lib/fog/terremark/requests/shared/get_organization.rb,
lib/fog/aws/requests/iam/delete_signing_certificate.rb,
lib/fog/aws/requests/iam/update_signing_certificate.rb,
lib/fog/aws/requests/iam/upload_signing_certificate.rb,
lib/fog/compute/requests/brightbox/destroy_cloud_ip.rb,
lib/fog/compute/requests/brightbox/list_api_clients.rb,
lib/fog/compute/requests/go_grid/common_lookup_list.rb,
lib/fog/compute/requests/go_grid/grid_server_delete.rb,
lib/fog/compute/requests/linode/avail_distributions.rb,
lib/fog/dns/parsers/aws/change_resource_record_sets.rb,
lib/fog/storage/requests/aws/abort_multipart_upload.rb,
lib/fog/storage/requests/aws/list_multipart_uploads.rb,
lib/fog/storage/requests/rackspace/delete_container.rb,
lib/fog/terremark/requests/shared/get_node_services.rb,
lib/fog/terremark/requests/shared/get_organizations.rb,
lib/fog/terremark/requests/shared/get_vapp_template.rb,
lib/fog/compute/parsers/aws/describe_security_groups.rb,
lib/fog/compute/requests/aws/modify_image_attributes.rb,
lib/fog/compute/requests/brightbox/create_api_client.rb,
lib/fog/compute/requests/brightbox/get_load_balancer.rb,
lib/fog/compute/requests/brightbox/list_server_types.rb,
lib/fog/compute/requests/brightbox/update_api_client.rb,
lib/fog/compute/requests/ecloud/add_internet_service.rb,
lib/fog/compute/requests/ecloud/configure_network_ip.rb,
lib/fog/compute/requests/rackspace/get_image_details.rb,
lib/fog/dns/requests/aws/change_resource_record_sets.rb,
lib/fog/storage/parsers/google/get_bucket_versioning.rb,
lib/fog/aws/parsers/ses/delete_verified_email_address.rb,
lib/fog/aws/parsers/ses/list_verified_email_addresses.rb,
lib/fog/compute/models/ecloud/backup_internet_service.rb,
lib/fog/compute/requests/aws/describe_security_groups.rb,
lib/fog/compute/requests/brightbox/destroy_api_client.rb,
lib/fog/compute/requests/ecloud/get_internet_services.rb,
lib/fog/compute/requests/go_grid/support_password_get.rb,
lib/fog/compute/requests/rackspace/get_flavor_details.rb,
lib/fog/compute/requests/rackspace/get_server_details.rb,
lib/fog/compute/requests/rackspace/list_images_detail.rb,
lib/fog/storage/parsers/aws/complete_multipart_upload.rb,
lib/fog/storage/parsers/aws/initiate_multipart_upload.rb,
lib/fog/terremark/requests/shared/delete_node_service.rb,
lib/fog/aws/requests/ses/delete_verified_email_address.rb,
lib/fog/aws/requests/ses/list_verified_email_addresses.rb,
lib/fog/compute/models/ecloud/backup_internet_services.rb,
lib/fog/compute/requests/aws/modify_snapshot_attribute.rb,
lib/fog/compute/requests/brightbox/list_load_balancers.rb,
lib/fog/compute/requests/ecloud/get_network_extensions.rb,
lib/fog/compute/requests/go_grid/support_password_list.rb,
lib/fog/compute/requests/rackspace/list_flavors_detail.rb,
lib/fog/compute/requests/rackspace/list_servers_detail.rb,
lib/fog/storage/parsers/aws/get_bucket_object_versions.rb,
lib/fog/storage/requests/aws/complete_multipart_upload.rb,
lib/fog/storage/requests/aws/initiate_multipart_upload.rb,
lib/fog/storage/requests/aws/post_object_hidden_fields.rb,
lib/fog/terremark/parsers/shared/get_internet_services.rb,
lib/fog/terremark/requests/shared/add_internet_service.rb,
lib/fog/compute/parsers/aws/describe_availability_zones.rb,
lib/fog/compute/parsers/aws/describe_reserved_instances.rb,
lib/fog/compute/requests/brightbox/create_load_balancer.rb,
lib/fog/compute/requests/brightbox/update_load_balancer.rb,
lib/fog/compute/requests/ecloud/delete_internet_service.rb,
lib/fog/compute/requests/go_grid/grid_loadbalancer_list.rb,
lib/fog/storage/requests/aws/get_bucket_object_versions.rb,
lib/fog/terremark/requests/shared/get_internet_services.rb,
lib/fog/compute/requests/aws/describe_availability_zones.rb,
lib/fog/compute/requests/aws/describe_reserved_instances.rb,
lib/fog/compute/requests/brightbox/destroy_load_balancer.rb,
lib/fog/compute/requests/rackspace/list_public_addresses.rb,
lib/fog/compute/requests/rackspace/revert_resized_server.rb,
lib/fog/compute/requests/ecloud/get_customization_options.rb,
lib/fog/compute/requests/ecloud/instantiate_vapp_template.rb,
lib/fog/compute/requests/rackspace/confirm_resized_server.rb,
lib/fog/compute/requests/rackspace/list_private_addresses.rb,
lib/fog/storage/parsers/google/get_bucket_object_versions.rb,
lib/fog/terremark/requests/shared/create_internet_service.rb,
lib/fog/terremark/requests/shared/delete_internet_service.rb,
lib/fog/compute/requests/aws/revoke_security_group_ingress.rb,
lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb,
lib/fog/compute/requests/ecloud/configure_internet_service.rb,
lib/fog/terremark/parsers/shared/instantiate_vapp_template.rb,
lib/fog/compute/requests/ecloud/add_backup_internet_service.rb,
lib/fog/terremark/requests/shared/instantiate_vapp_template.rb,
lib/fog/aws/parsers/elb/register_instances_with_load_balancer.rb,
lib/fog/compute/requests/aws/authorize_security_group_ingress.rb,
lib/fog/compute/requests/brightbox/remove_nodes_load_balancer.rb,
lib/fog/compute/requests/brightbox/reset_ftp_password_account.rb,
lib/fog/aws/requests/elb/register_instances_with_load_balancer.rb,
lib/fog/aws/parsers/elb/deregister_instances_from_load_balancer.rb,
lib/fog/aws/requests/elb/deregister_instances_from_load_balancer.rb,
lib/fog/compute/parsers/aws/describe_reserved_instances_offerings.rb,
lib/fog/compute/requests/aws/describe_reserved_instances_offerings.rb,
lib/fog/aws/parsers/elb/enable_availability_zones_for_load_balancer.rb,
lib/fog/aws/parsers/elb/disable_availability_zones_for_load_balancer.rb,
lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb,
lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
Overview
AFAICT - This is basically undocumented - 6/18/2010 - freeformz
Defined Under Namespace
Modules: AWS, Attributes, Bluebox, Brightbox, DNSimple, Deprecation, Ecloud, Errors, GoGrid, Google, Linode, Local, Mock, NewServers, Parsers, Provider, Rackspace, SCP, SSH, Slicehost, Terremark, Voxel, Zerigo Classes: Bin, CDN, Collection, Compute, Connection, DNS, HMAC, Model, Service, Storage, Time, ToHashDocument
Constant Summary collapse
- VERSION =
'0.6.0'
Class Method Summary collapse
-
.credential ⇒ String, Symbol
The credential to use in Fog.
-
.credential=(new_credential) ⇒ Object
Assign a new credential to use from configuration file @param [String, Symbol] new_credential name of new credential to use @ return [String, Symbol] name of the new credential.
-
.credentials ⇒ Hash
The credentials pulled from the configuration file.
-
.credentials_path ⇒ String
The path for configuration_file.
-
.credentials_path=(new_credentials_path) ⇒ String
The new path for credentials file.
- .mock! ⇒ Object
- .mock? ⇒ Boolean
- .mocking? ⇒ Boolean
- .providers ⇒ Object
- .wait_for(timeout = 600, interval = 1, &block) ⇒ Object
Class Method Details
.credential ⇒ String, Symbol
Returns The credential to use in Fog.
15 16 17 |
# File 'lib/fog/core/credentials.rb', line 15 def self.credential @credential ||= :default end |
.credential=(new_credential) ⇒ Object
Assign a new credential to use from configuration file
@param [String, Symbol] new_credential name of new credential to use
@ return [String, Symbol] name of the new credential
9 10 11 12 |
# File 'lib/fog/core/credentials.rb', line 9 def self.credential=(new_credential) @credentials = nil @credential = new_credential end |
.credentials ⇒ Hash
Returns The credentials pulled from the configuration file.
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/fog/core/credentials.rb', line 32 def self.credentials @credentials ||= begin if File.exists?(credentials_path) credentials = YAML.load_file(credentials_path) (credentials && credentials[credential]) or raise LoadError.new(missing_credentials) else {} end end end |
.credentials_path ⇒ String
Returns The path for configuration_file.
20 21 22 |
# File 'lib/fog/core/credentials.rb', line 20 def self.credentials_path @credential_path ||= File.(ENV["FOG_RC"] || '~/.fog') end |
.credentials_path=(new_credentials_path) ⇒ String
Returns The new path for credentials file.
25 26 27 28 |
# File 'lib/fog/core/credentials.rb', line 25 def self.credentials_path=(new_credentials_path) @credentials = nil @credential_path = new_credentials_path end |
.mock! ⇒ Object
5 6 7 |
# File 'lib/fog/core/mock.rb', line 5 def self.mock! @mocking = true end |
.mock? ⇒ Boolean
9 10 11 |
# File 'lib/fog/core/mock.rb', line 9 def self.mock? @mocking end |
.mocking? ⇒ Boolean
13 14 15 |
# File 'lib/fog/core/mock.rb', line 13 def self.mocking? @mocking end |
.providers ⇒ Object
6 7 8 |
# File 'lib/fog/bin.rb', line 6 def providers @providers.select {|provider| eval("::#{provider.to_s.split('::').last}").available?} end |
.wait_for(timeout = 600, interval = 1, &block) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/fog/core/wait_for.rb', line 3 def self.wait_for(timeout=600, interval=1, &block) duration = 0 start = Time.now until yield || duration > timeout sleep(interval) duration = Time.now - start end if duration > timeout false else { :duration => duration } end end |