fog 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile.lock +3 -3
- data/bin/fog +0 -5
- data/changelog.txt +88 -0
- data/fog.gemspec +3 -3
- data/lib/fog.rb +1 -2
- data/lib/fog/aws/elb.rb +2 -0
- data/lib/fog/aws/iam.rb +7 -0
- data/lib/fog/aws/parsers/iam/get_group.rb +55 -0
- data/lib/fog/aws/parsers/iam/get_user_policy.rb +27 -0
- data/lib/fog/aws/parsers/iam/update_group.rb +26 -0
- data/lib/fog/aws/parsers/iam/update_user.rb +27 -0
- data/lib/fog/aws/requests/iam/create_access_key.rb +1 -1
- data/lib/fog/aws/requests/iam/get_group.rb +44 -0
- data/lib/fog/aws/requests/iam/get_user_policy.rb +36 -0
- data/lib/fog/aws/requests/iam/update_group.rb +39 -0
- data/lib/fog/aws/requests/iam/update_signing_certificate.rb +32 -0
- data/lib/fog/aws/requests/iam/update_user.rb +39 -0
- data/lib/fog/aws/ses.rb +2 -0
- data/lib/fog/aws/simpledb.rb +2 -0
- data/lib/fog/bin.rb +3 -8
- data/lib/fog/bin/aws.rb +2 -14
- data/lib/fog/bin/bluebox.rb +6 -8
- data/lib/fog/bin/dnsimple.rb +30 -0
- data/lib/fog/bin/ecloud.rb +30 -0
- data/lib/fog/bin/go_grid.rb +1 -7
- data/lib/fog/bin/linode.rb +0 -6
- data/lib/fog/bin/local.rb +1 -7
- data/lib/fog/bin/new_servers.rb +1 -7
- data/lib/fog/bin/rackspace.rb +2 -14
- data/lib/fog/bin/slicehost.rb +2 -8
- data/lib/fog/bin/terremark.rb +0 -5
- data/lib/fog/bin/voxel.rb +30 -0
- data/lib/fog/cdn/aws.rb +2 -0
- data/lib/fog/compute.rb +6 -3
- data/lib/fog/compute/aws.rb +4 -18
- data/lib/fog/compute/ecloud.rb +1306 -0
- data/lib/fog/compute/models/aws/key_pair.rb +0 -2
- data/lib/fog/compute/models/aws/security_group.rb +4 -4
- data/lib/fog/compute/models/aws/server.rb +13 -3
- data/lib/fog/compute/models/aws/snapshot.rb +0 -2
- data/lib/fog/compute/models/aws/volume.rb +0 -2
- data/lib/fog/compute/models/bluebox/server.rb +23 -11
- data/lib/fog/compute/models/brightbox/server.rb +8 -0
- data/lib/fog/compute/models/ecloud/backup_internet_service.rb +56 -0
- data/lib/fog/compute/models/ecloud/backup_internet_services.rb +33 -0
- data/lib/fog/compute/models/ecloud/catalog.rb +28 -0
- data/lib/fog/compute/models/ecloud/catalog_item.rb +29 -0
- data/lib/fog/compute/models/ecloud/firewall_acl.rb +24 -0
- data/lib/fog/compute/models/ecloud/firewall_acls.rb +31 -0
- data/lib/fog/compute/models/ecloud/internet_service.rb +117 -0
- data/lib/fog/compute/models/ecloud/internet_services.rb +33 -0
- data/lib/fog/compute/models/ecloud/ip.rb +49 -0
- data/lib/fog/compute/models/ecloud/ips.rb +32 -0
- data/lib/fog/compute/models/ecloud/network.rb +72 -0
- data/lib/fog/compute/models/ecloud/networks.rb +33 -0
- data/lib/fog/compute/models/ecloud/node.rb +43 -0
- data/lib/fog/compute/models/ecloud/nodes.rb +31 -0
- data/lib/fog/compute/models/ecloud/public_ip.rb +22 -0
- data/lib/fog/compute/models/ecloud/public_ips.rb +36 -0
- data/lib/fog/compute/models/ecloud/server.rb +209 -0
- data/lib/fog/compute/models/ecloud/servers.rb +55 -0
- data/lib/fog/compute/models/ecloud/task.rb +21 -0
- data/lib/fog/compute/models/ecloud/tasks.rb +31 -0
- data/lib/fog/compute/models/ecloud/vdc.rb +81 -0
- data/lib/fog/compute/models/ecloud/vdcs.rb +40 -0
- data/lib/fog/compute/models/go_grid/server.rb +15 -1
- data/lib/fog/compute/models/rackspace/server.rb +16 -0
- data/lib/fog/compute/models/slicehost/server.rb +16 -0
- data/lib/fog/compute/models/voxel/image.rb +12 -0
- data/lib/fog/compute/models/voxel/images.rb +30 -0
- data/lib/fog/compute/models/voxel/server.rb +77 -0
- data/lib/fog/compute/models/voxel/servers.rb +31 -0
- data/lib/fog/compute/new_servers.rb +2 -2
- data/lib/fog/compute/parsers/voxel/basic.rb +31 -0
- data/lib/fog/compute/parsers/voxel/devices_list.rb +111 -0
- data/lib/fog/compute/parsers/voxel/images_list.rb +59 -0
- data/lib/fog/compute/parsers/voxel/voxcloud_create.rb +40 -0
- data/lib/fog/compute/parsers/voxel/voxcloud_delete.rb +31 -0
- data/lib/fog/compute/parsers/voxel/voxcloud_status.rb +42 -0
- data/lib/fog/compute/rackspace.rb +0 -16
- data/lib/fog/compute/requests/aws/associate_address.rb +2 -0
- data/lib/fog/compute/requests/aws/authorize_security_group_ingress.rb +28 -8
- data/lib/fog/compute/requests/aws/create_security_group.rb +2 -0
- data/lib/fog/compute/requests/aws/create_tags.rb +2 -0
- data/lib/fog/compute/requests/aws/delete_key_pair.rb +2 -0
- data/lib/fog/compute/requests/aws/delete_security_group.rb +2 -0
- data/lib/fog/compute/requests/aws/delete_snapshot.rb +2 -0
- data/lib/fog/compute/requests/aws/delete_tags.rb +2 -0
- data/lib/fog/compute/requests/aws/delete_volume.rb +2 -0
- data/lib/fog/compute/requests/aws/disassociate_address.rb +2 -0
- data/lib/fog/compute/requests/aws/modify_image_attributes.rb +2 -0
- data/lib/fog/compute/requests/aws/modify_snapshot_attribute.rb +2 -0
- data/lib/fog/compute/requests/aws/reboot_instances.rb +2 -0
- data/lib/fog/compute/requests/aws/release_address.rb +2 -0
- data/lib/fog/compute/requests/aws/revoke_security_group_ingress.rb +2 -0
- data/lib/fog/compute/requests/ecloud/add_backup_internet_service.rb +109 -0
- data/lib/fog/compute/requests/ecloud/add_internet_service.rb +149 -0
- data/lib/fog/compute/requests/ecloud/add_node.rb +62 -0
- data/lib/fog/compute/requests/ecloud/clone_vapp.rb +40 -0
- data/lib/fog/compute/requests/ecloud/configure_internet_service.rb +112 -0
- data/lib/fog/compute/requests/ecloud/configure_network.rb +44 -0
- data/lib/fog/compute/requests/ecloud/configure_network_ip.rb +66 -0
- data/lib/fog/compute/requests/ecloud/configure_node.rb +56 -0
- data/lib/fog/compute/requests/ecloud/configure_vapp.rb +144 -0
- data/lib/fog/compute/requests/ecloud/delete_internet_service.rb +22 -0
- data/lib/fog/compute/requests/ecloud/delete_node.rb +22 -0
- data/lib/fog/compute/requests/ecloud/delete_vapp.rb +29 -0
- data/lib/fog/compute/requests/ecloud/get_catalog.rb +44 -0
- data/lib/fog/compute/requests/ecloud/get_catalog_item.rb +47 -0
- data/lib/fog/compute/requests/ecloud/get_customization_options.rb +22 -0
- data/lib/fog/compute/requests/ecloud/get_firewall_acl.rb +11 -0
- data/lib/fog/compute/requests/ecloud/get_firewall_acls.rb +11 -0
- data/lib/fog/compute/requests/ecloud/get_internet_services.rb +82 -0
- data/lib/fog/compute/requests/ecloud/get_network.rb +44 -0
- data/lib/fog/compute/requests/ecloud/get_network_extensions.rb +33 -0
- data/lib/fog/compute/requests/ecloud/get_network_ip.rb +43 -0
- data/lib/fog/compute/requests/ecloud/get_network_ips.rb +35 -0
- data/lib/fog/compute/requests/ecloud/get_node.rb +40 -0
- data/lib/fog/compute/requests/ecloud/get_nodes.rb +41 -0
- data/lib/fog/compute/requests/ecloud/get_organization.rb +49 -0
- data/lib/fog/compute/requests/ecloud/get_public_ip.rb +34 -0
- data/lib/fog/compute/requests/ecloud/get_public_ips.rb +38 -0
- data/lib/fog/compute/requests/ecloud/get_task.rb +11 -0
- data/lib/fog/compute/requests/ecloud/get_task_list.rb +11 -0
- data/lib/fog/compute/requests/ecloud/get_vapp.rb +99 -0
- data/lib/fog/compute/requests/ecloud/get_vapp_template.rb +11 -0
- data/lib/fog/compute/requests/ecloud/get_vdc.rb +84 -0
- data/lib/fog/compute/requests/ecloud/get_versions.rb +37 -0
- data/lib/fog/compute/requests/ecloud/instantiate_vapp_template.rb +142 -0
- data/lib/fog/compute/requests/ecloud/login.rb +48 -0
- data/lib/fog/compute/requests/ecloud/power_off.rb +23 -0
- data/lib/fog/compute/requests/ecloud/power_on.rb +23 -0
- data/lib/fog/compute/requests/ecloud/power_reset.rb +11 -0
- data/lib/fog/compute/requests/ecloud/power_shutdown.rb +11 -0
- data/lib/fog/compute/requests/voxel/devices_list.rb +24 -0
- data/lib/fog/compute/requests/voxel/devices_power.rb +22 -0
- data/lib/fog/compute/requests/voxel/images_list.rb +31 -0
- data/lib/fog/compute/requests/voxel/voxcloud_create.rb +22 -0
- data/lib/fog/compute/requests/voxel/voxcloud_delete.rb +20 -0
- data/lib/fog/compute/requests/voxel/voxcloud_status.rb +29 -0
- data/lib/fog/compute/slicehost.rb +2 -0
- data/lib/fog/compute/voxel.rb +112 -0
- data/lib/fog/core.rb +1 -0
- data/lib/fog/core/credentials.rb +6 -2
- data/lib/fog/core/parser.rb +2 -0
- data/lib/fog/core/scp.rb +67 -0
- data/lib/fog/dns.rb +6 -0
- data/lib/fog/dns/aws.rb +2 -0
- data/lib/fog/dns/bluebox.rb +110 -0
- data/lib/fog/dns/dnsimple.rb +95 -0
- data/lib/fog/dns/models/bluebox/record.rb +52 -0
- data/lib/fog/dns/models/bluebox/records.rb +36 -0
- data/lib/fog/dns/models/bluebox/zone.rb +63 -0
- data/lib/fog/dns/models/bluebox/zones.rb +28 -0
- data/lib/fog/dns/models/dnsimple/record.rb +54 -0
- data/lib/fog/dns/models/dnsimple/records.rb +38 -0
- data/lib/fog/dns/models/dnsimple/zone.rb +50 -0
- data/lib/fog/dns/models/dnsimple/zones.rb +28 -0
- data/lib/fog/dns/parsers/bluebox/create_record.rb +26 -0
- data/lib/fog/dns/parsers/bluebox/create_zone.rb +26 -0
- data/lib/fog/dns/parsers/bluebox/get_record.rb +21 -0
- data/lib/fog/dns/parsers/bluebox/get_records.rb +27 -0
- data/lib/fog/{compute/parsers/terremark_ecloud/get_ip_address.rb → dns/parsers/bluebox/get_zone.rb} +6 -6
- data/lib/fog/dns/parsers/bluebox/get_zones.rb +30 -0
- data/lib/fog/dns/requests/bluebox/create_record.rb +48 -0
- data/lib/fog/dns/requests/bluebox/create_zone.rb +52 -0
- data/lib/fog/dns/requests/bluebox/delete_record.rb +31 -0
- data/lib/fog/dns/requests/bluebox/delete_zone.rb +31 -0
- data/lib/fog/dns/requests/bluebox/get_record.rb +40 -0
- data/lib/fog/dns/requests/bluebox/get_records.rb +41 -0
- data/lib/fog/dns/requests/bluebox/get_zone.rb +44 -0
- data/lib/fog/dns/requests/bluebox/get_zones.rb +43 -0
- data/lib/fog/dns/requests/bluebox/update_record.rb +34 -0
- data/lib/fog/dns/requests/bluebox/update_zone.rb +30 -0
- data/lib/fog/dns/requests/dnsimple/create_domain.rb +27 -0
- data/lib/fog/dns/requests/dnsimple/create_record.rb +48 -0
- data/lib/fog/dns/requests/dnsimple/delete_domain.rb +26 -0
- data/lib/fog/dns/requests/dnsimple/delete_record.rb +21 -0
- data/lib/fog/dns/requests/dnsimple/get_domain.rb +37 -0
- data/lib/fog/dns/requests/dnsimple/list_domains.rb +35 -0
- data/lib/fog/dns/requests/dnsimple/list_records.rb +32 -0
- data/lib/fog/dns/requests/dnsimple/update_record.rb +42 -0
- data/lib/fog/dns/slicehost.rb +2 -0
- data/lib/fog/dns/zerigo.rb +2 -0
- data/lib/fog/providers.rb +3 -1
- data/lib/fog/providers/aws.rb +0 -4
- data/lib/fog/providers/bluebox.rb +1 -8
- data/lib/fog/providers/dnsimple.rb +11 -0
- data/lib/fog/providers/ecloud.rb +11 -0
- data/lib/fog/providers/go_grid.rb +0 -8
- data/lib/fog/providers/google.rb +0 -3
- data/lib/fog/providers/linode.rb +0 -8
- data/lib/fog/providers/local.rb +0 -8
- data/lib/fog/providers/new_servers.rb +0 -11
- data/lib/fog/providers/rackspace.rb +0 -2
- data/lib/fog/providers/slicehost.rb +0 -11
- data/lib/fog/providers/voxel.rb +16 -0
- data/lib/fog/providers/zerigo.rb +0 -3
- data/lib/fog/storage/aws.rb +7 -19
- data/lib/fog/storage/google.rb +2 -2
- data/lib/fog/storage/models/aws/directory.rb +0 -3
- data/lib/fog/storage/models/aws/file.rb +0 -3
- data/lib/fog/storage/models/google/directory.rb +0 -3
- data/lib/fog/storage/models/google/file.rb +0 -3
- data/lib/fog/storage/models/local/directory.rb +0 -3
- data/lib/fog/storage/models/local/file.rb +29 -1
- data/lib/fog/storage/models/local/files.rb +8 -5
- data/lib/fog/storage/models/rackspace/directory.rb +1 -3
- data/lib/fog/storage/parsers/aws/get_bucket_website.rb +26 -0
- data/lib/fog/storage/rackspace.rb +0 -16
- data/lib/fog/storage/requests/aws/delete_bucket_website.rb +32 -0
- data/lib/fog/storage/requests/aws/get_bucket_website.rb +42 -0
- data/lib/fog/storage/requests/aws/put_bucket_website.rb +49 -0
- data/lib/fog/terremark.rb +0 -5
- data/spec/ecloud/bin_spec.rb +22 -0
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/backup_internet_service_spec.rb +5 -5
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/backup_internet_services_spec.rb +4 -4
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/internet_service_spec.rb +5 -5
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/internet_services_spec.rb +4 -4
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/ip_spec.rb +5 -5
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/ips_spec.rb +4 -4
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/network_spec.rb +5 -5
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/networks_spec.rb +4 -4
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/node_spec.rb +5 -5
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/nodes_spec.rb +4 -4
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/public_ip_spec.rb +5 -5
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/public_ips_spec.rb +4 -4
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/server_spec.rb +4 -4
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/vdc_spec.rb +5 -5
- data/spec/{vcloud/terremark/ecloud → ecloud}/models/vdcs_spec.rb +4 -4
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/add_backup_internet_service_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/add_internet_service_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/add_node_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/configure_internet_service_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/configure_network_ip_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/configure_node_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/configure_vapp_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/delete_internet_service_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/delete_node_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/delete_vapp_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_catalog_item_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_catalog_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_customization_options_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_internet_services_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_network_ip_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_network_ips_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_network_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_node_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_nodes_spec.rb +2 -2
- data/spec/{vcloud → ecloud}/requests/get_organization_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_public_ip_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_public_ips_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_vapp_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/get_vdc_spec.rb +2 -2
- data/spec/ecloud/requests/get_versions_spec.rb +57 -0
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/instantiate_vapp_template_spec.rb +3 -3
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/login_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/power_off_spec.rb +2 -2
- data/spec/{vcloud/terremark/ecloud → ecloud}/requests/power_on_spec.rb +2 -2
- data/spec/{vcloud → ecloud}/spec_helper.rb +14 -29
- data/spec/{vcloud → ecloud}/vcloud_spec.rb +4 -4
- data/spec/spec_helper.rb +0 -1
- data/tests/compute/helper.rb +12 -1
- data/tests/compute/models/flavors_tests.rb +2 -0
- data/tests/compute/models/server_tests.rb +28 -1
- data/tests/compute/requests/voxel/image_tests.rb +46 -0
- data/tests/compute/requests/voxel/server_tests.rb +123 -0
- data/tests/dns/helper.rb +10 -1
- data/tests/dns/models/record_tests.rb +0 -1
- data/tests/dns/requests/bluebox/dns_tests.rb +271 -0
- data/tests/dns/requests/dnsimple/dns_tests.rb +130 -0
- data/tests/helper.rb +1 -1
- data/tests/helpers/mock_helper.rb +2 -0
- data/tests/storage/models/directory_test.rb +2 -1
- metadata +244 -224
- data/lib/fog/bin/terremark_ecloud.rb +0 -28
- data/lib/fog/bin/vcloud.rb +0 -59
- data/lib/fog/compute/parsers/terremark_ecloud/get_catalog.rb +0 -36
- data/lib/fog/compute/parsers/terremark_ecloud/get_catalog_item.rb +0 -43
- data/lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb +0 -27
- data/lib/fog/compute/parsers/terremark_ecloud/get_network.rb +0 -59
- data/lib/fog/compute/parsers/terremark_ecloud/get_organization.rb +0 -35
- data/lib/fog/compute/parsers/terremark_ecloud/get_task.rb +0 -42
- data/lib/fog/compute/parsers/terremark_ecloud/get_task_list.rb +0 -51
- data/lib/fog/compute/parsers/terremark_ecloud/get_vdc.rb +0 -110
- data/lib/fog/compute/parsers/terremark_ecloud/get_versions.rb +0 -28
- data/lib/fog/compute/parsers/terremark_ecloud/login.rb +0 -27
- data/lib/fog/compute/requests/terremark_ecloud/get_catalog.rb +0 -19
- data/lib/fog/compute/requests/terremark_ecloud/get_catalog_item.rb +0 -19
- data/lib/fog/compute/requests/terremark_ecloud/get_ip_address.rb +0 -19
- data/lib/fog/compute/requests/terremark_ecloud/get_ip_addresses.rb +0 -19
- data/lib/fog/compute/requests/terremark_ecloud/get_network.rb +0 -19
- data/lib/fog/compute/requests/terremark_ecloud/get_organization.rb +0 -19
- data/lib/fog/compute/requests/terremark_ecloud/get_task.rb +0 -19
- data/lib/fog/compute/requests/terremark_ecloud/get_task_list.rb +0 -19
- data/lib/fog/compute/requests/terremark_ecloud/get_vdc.rb +0 -19
- data/lib/fog/compute/requests/terremark_ecloud/get_versions.rb +0 -26
- data/lib/fog/compute/requests/terremark_ecloud/login.rb +0 -29
- data/lib/fog/compute/terremark_ecloud.rb +0 -93
- data/lib/fog/providers/terremark_ecloud.rb +0 -17
- data/lib/fog/terremark/ecloud.rb +0 -73
- data/lib/fog/vcloud.rb +0 -337
- data/lib/fog/vcloud/collection.rb +0 -30
- data/lib/fog/vcloud/generators.rb +0 -33
- data/lib/fog/vcloud/mock_data_classes.rb +0 -767
- data/lib/fog/vcloud/model.rb +0 -22
- data/lib/fog/vcloud/models/vdc.rb +0 -26
- data/lib/fog/vcloud/models/vdcs.rb +0 -35
- data/lib/fog/vcloud/requests/get_network.rb +0 -47
- data/lib/fog/vcloud/requests/get_organization.rb +0 -47
- data/lib/fog/vcloud/requests/get_vdc.rb +0 -82
- data/lib/fog/vcloud/requests/get_versions.rb +0 -34
- data/lib/fog/vcloud/requests/login.rb +0 -46
- data/lib/fog/vcloud/terremark/ecloud.rb +0 -187
- data/lib/fog/vcloud/terremark/ecloud/models/backup_internet_service.rb +0 -60
- data/lib/fog/vcloud/terremark/ecloud/models/backup_internet_services.rb +0 -36
- data/lib/fog/vcloud/terremark/ecloud/models/catalog.rb +0 -31
- data/lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb +0 -31
- data/lib/fog/vcloud/terremark/ecloud/models/firewall_acl.rb +0 -28
- data/lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb +0 -34
- data/lib/fog/vcloud/terremark/ecloud/models/internet_service.rb +0 -121
- data/lib/fog/vcloud/terremark/ecloud/models/internet_services.rb +0 -36
- data/lib/fog/vcloud/terremark/ecloud/models/ip.rb +0 -51
- data/lib/fog/vcloud/terremark/ecloud/models/ips.rb +0 -35
- data/lib/fog/vcloud/terremark/ecloud/models/network.rb +0 -77
- data/lib/fog/vcloud/terremark/ecloud/models/networks.rb +0 -36
- data/lib/fog/vcloud/terremark/ecloud/models/node.rb +0 -47
- data/lib/fog/vcloud/terremark/ecloud/models/nodes.rb +0 -33
- data/lib/fog/vcloud/terremark/ecloud/models/public_ip.rb +0 -25
- data/lib/fog/vcloud/terremark/ecloud/models/public_ips.rb +0 -39
- data/lib/fog/vcloud/terremark/ecloud/models/server.rb +0 -211
- data/lib/fog/vcloud/terremark/ecloud/models/servers.rb +0 -57
- data/lib/fog/vcloud/terremark/ecloud/models/task.rb +0 -23
- data/lib/fog/vcloud/terremark/ecloud/models/tasks.rb +0 -33
- data/lib/fog/vcloud/terremark/ecloud/models/vdc.rb +0 -83
- data/lib/fog/vcloud/terremark/ecloud/models/vdcs.rb +0 -42
- data/lib/fog/vcloud/terremark/ecloud/requests/add_backup_internet_service.rb +0 -111
- data/lib/fog/vcloud/terremark/ecloud/requests/add_internet_service.rb +0 -152
- data/lib/fog/vcloud/terremark/ecloud/requests/add_node.rb +0 -64
- data/lib/fog/vcloud/terremark/ecloud/requests/clone_vapp.rb +0 -42
- data/lib/fog/vcloud/terremark/ecloud/requests/configure_internet_service.rb +0 -115
- data/lib/fog/vcloud/terremark/ecloud/requests/configure_network.rb +0 -46
- data/lib/fog/vcloud/terremark/ecloud/requests/configure_network_ip.rb +0 -68
- data/lib/fog/vcloud/terremark/ecloud/requests/configure_node.rb +0 -58
- data/lib/fog/vcloud/terremark/ecloud/requests/configure_vapp.rb +0 -147
- data/lib/fog/vcloud/terremark/ecloud/requests/delete_internet_service.rb +0 -25
- data/lib/fog/vcloud/terremark/ecloud/requests/delete_node.rb +0 -24
- data/lib/fog/vcloud/terremark/ecloud/requests/delete_vapp.rb +0 -32
- data/lib/fog/vcloud/terremark/ecloud/requests/get_catalog.rb +0 -46
- data/lib/fog/vcloud/terremark/ecloud/requests/get_catalog_item.rb +0 -49
- data/lib/fog/vcloud/terremark/ecloud/requests/get_customization_options.rb +0 -24
- data/lib/fog/vcloud/terremark/ecloud/requests/get_firewall_acl.rb +0 -13
- data/lib/fog/vcloud/terremark/ecloud/requests/get_firewall_acls.rb +0 -13
- data/lib/fog/vcloud/terremark/ecloud/requests/get_internet_services.rb +0 -84
- data/lib/fog/vcloud/terremark/ecloud/requests/get_network.rb +0 -47
- data/lib/fog/vcloud/terremark/ecloud/requests/get_network_extensions.rb +0 -35
- data/lib/fog/vcloud/terremark/ecloud/requests/get_network_ip.rb +0 -45
- data/lib/fog/vcloud/terremark/ecloud/requests/get_network_ips.rb +0 -37
- data/lib/fog/vcloud/terremark/ecloud/requests/get_node.rb +0 -42
- data/lib/fog/vcloud/terremark/ecloud/requests/get_nodes.rb +0 -43
- data/lib/fog/vcloud/terremark/ecloud/requests/get_public_ip.rb +0 -36
- data/lib/fog/vcloud/terremark/ecloud/requests/get_public_ips.rb +0 -41
- data/lib/fog/vcloud/terremark/ecloud/requests/get_task.rb +0 -13
- data/lib/fog/vcloud/terremark/ecloud/requests/get_task_list.rb +0 -14
- data/lib/fog/vcloud/terremark/ecloud/requests/get_vapp.rb +0 -101
- data/lib/fog/vcloud/terremark/ecloud/requests/get_vapp_template.rb +0 -13
- data/lib/fog/vcloud/terremark/ecloud/requests/get_vdc.rb +0 -87
- data/lib/fog/vcloud/terremark/ecloud/requests/instantiate_vapp_template.rb +0 -144
- data/lib/fog/vcloud/terremark/ecloud/requests/power_off.rb +0 -25
- data/lib/fog/vcloud/terremark/ecloud/requests/power_on.rb +0 -25
- data/lib/fog/vcloud/terremark/ecloud/requests/power_reset.rb +0 -13
- data/lib/fog/vcloud/terremark/ecloud/requests/power_shutdown.rb +0 -13
- data/lib/fog/vcloud/terremark/vcloud.rb +0 -39
- data/lib/fog/vcloud/terremark/vcloud/requests/get_vdc.rb +0 -57
- data/spec/vcloud/bin_spec.rb +0 -28
- data/spec/vcloud/models/vdc_spec.rb +0 -51
- data/spec/vcloud/models/vdcs_spec.rb +0 -1
- data/spec/vcloud/requests/get_network_spec.rb +0 -44
- data/spec/vcloud/requests/get_vdc_spec.rb +0 -62
- data/spec/vcloud/requests/get_versions_spec.rb +0 -54
- data/spec/vcloud/requests/login_spec.rb +0 -24
- data/tests/compute/requests/terremark_ecloud/catalog_tests.rb +0 -47
- data/tests/compute/requests/terremark_ecloud/helper.rb +0 -45
- data/tests/compute/requests/terremark_ecloud/network_tests.rb +0 -30
- data/tests/compute/requests/terremark_ecloud/organization_tests.rb +0 -28
- data/tests/compute/requests/terremark_ecloud/task_tests.rb +0 -39
- data/tests/compute/requests/terremark_ecloud/vdc_tests.rb +0 -60
@@ -1,77 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
class Vcloud
|
3
|
-
module Terremark
|
4
|
-
class Ecloud
|
5
|
-
class Network < Fog::Vcloud::Model
|
6
|
-
|
7
|
-
identity :href
|
8
|
-
|
9
|
-
ignore_attributes :xmlns, :xmlns_xsi, :xmlns_xsd, :xmlns_i, :Configuration, :Id
|
10
|
-
|
11
|
-
attribute :name, :aliases => :Name
|
12
|
-
#attribute :id, :aliases => :Id
|
13
|
-
attribute :features, :aliases => :Features, :type => :array
|
14
|
-
attribute :links, :aliases => :Link, :type => :array
|
15
|
-
attribute :type
|
16
|
-
attribute :gateway, :aliases => :GatewayAddress
|
17
|
-
attribute :broadcast, :aliases => :BroadcastAddress
|
18
|
-
attribute :address, :aliases => :Address
|
19
|
-
attribute :rnat, :aliases => :RnatAddress
|
20
|
-
attribute :extension_href, :aliases => :Href
|
21
|
-
attribute :network_type, :aliases => :NetworkType
|
22
|
-
attribute :vlan, :aliases => :Vlan
|
23
|
-
attribute :friendly_name, :aliases => :FriendlyName
|
24
|
-
|
25
|
-
def ips
|
26
|
-
load_unless_loaded!
|
27
|
-
@ips ||= Fog::Vcloud::Terremark::Ecloud::Ips.
|
28
|
-
new( :connection => connection,
|
29
|
-
:href => links.detect { |link| link[:name] == "IP Addresses" }[:href] )
|
30
|
-
end
|
31
|
-
|
32
|
-
def rnat=(new_rnat)
|
33
|
-
attributes[:rnat] = new_rnat
|
34
|
-
@changed = true
|
35
|
-
end
|
36
|
-
|
37
|
-
def save
|
38
|
-
if @changed
|
39
|
-
connection.configure_network( extension_href, _compose_network_data )
|
40
|
-
end
|
41
|
-
true
|
42
|
-
end
|
43
|
-
|
44
|
-
def reload
|
45
|
-
super
|
46
|
-
merge_attributes(extension_data.body)
|
47
|
-
self
|
48
|
-
end
|
49
|
-
|
50
|
-
private
|
51
|
-
|
52
|
-
def extension_data
|
53
|
-
connection.get_network_extensions( extensions_link[:href] )
|
54
|
-
end
|
55
|
-
|
56
|
-
def extensions_link
|
57
|
-
links.detect { |link| link[:name] == name }
|
58
|
-
end
|
59
|
-
|
60
|
-
def _compose_network_data
|
61
|
-
{
|
62
|
-
:id => id,
|
63
|
-
:href => extension_href,
|
64
|
-
:name => name,
|
65
|
-
:rnat => rnat,
|
66
|
-
:address => address,
|
67
|
-
:broadcast => broadcast,
|
68
|
-
:gateway => gateway
|
69
|
-
}
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
|
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'fog/vcloud/terremark/ecloud/models/network'
|
2
|
-
|
3
|
-
module Fog
|
4
|
-
class Vcloud
|
5
|
-
module Terremark
|
6
|
-
class Ecloud
|
7
|
-
|
8
|
-
class Networks < Fog::Vcloud::Collection
|
9
|
-
|
10
|
-
undef_method :create
|
11
|
-
|
12
|
-
model Fog::Vcloud::Terremark::Ecloud::Network
|
13
|
-
|
14
|
-
attribute :href
|
15
|
-
|
16
|
-
def all
|
17
|
-
check_href!("Vdc")
|
18
|
-
if data = connection.get_vdc(href).body[:AvailableNetworks][:Network]
|
19
|
-
load(data)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
def get(uri)
|
24
|
-
if data = connection.get_network(uri)
|
25
|
-
new(data.body)
|
26
|
-
end
|
27
|
-
rescue Fog::Errors::NotFound
|
28
|
-
nil
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
@@ -1,47 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
class Vcloud
|
3
|
-
module Terremark
|
4
|
-
class Ecloud
|
5
|
-
class Node < Fog::Vcloud::Model
|
6
|
-
|
7
|
-
identity :href, :aliases => :Href
|
8
|
-
|
9
|
-
ignore_attributes :xmlns, :xmlns_i
|
10
|
-
|
11
|
-
attribute :ip_address, :aliases => :IpAddress
|
12
|
-
attribute :description, :aliases => :Description
|
13
|
-
attribute :name, :aliases => :Name
|
14
|
-
attribute :port, :aliases => :Port
|
15
|
-
attribute :enabled, :aliases => :Enabled
|
16
|
-
attribute :id, :aliases => :Id
|
17
|
-
|
18
|
-
def delete
|
19
|
-
requires :href
|
20
|
-
|
21
|
-
connection.delete_node( href )
|
22
|
-
end
|
23
|
-
|
24
|
-
def save
|
25
|
-
if new_record?
|
26
|
-
result = connection.add_node( collection.href, _compose_node_data )
|
27
|
-
merge_attributes(result.body)
|
28
|
-
else
|
29
|
-
connection.configure_node( href, _compose_node_data )
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
private
|
34
|
-
|
35
|
-
def _compose_node_data
|
36
|
-
node_data = {}
|
37
|
-
self.class.attributes.select{ |attribute| !send(attribute).nil? }.each { |attribute| node_data[attribute] = send(attribute).to_s }
|
38
|
-
node_data
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
|
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'fog/vcloud/terremark/ecloud/models/node'
|
2
|
-
|
3
|
-
module Fog
|
4
|
-
class Vcloud
|
5
|
-
module Terremark
|
6
|
-
class Ecloud
|
7
|
-
|
8
|
-
class Nodes < Fog::Vcloud::Collection
|
9
|
-
|
10
|
-
model Fog::Vcloud::Terremark::Ecloud::Node
|
11
|
-
|
12
|
-
attribute :href, :aliases => :Href
|
13
|
-
|
14
|
-
def all
|
15
|
-
check_href!( :messages => "the Nodes href of the Internet Service you want to enumerate" )
|
16
|
-
if data = connection.get_nodes(href).body[:NodeService]
|
17
|
-
load(data)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def get(uri)
|
22
|
-
if data = connection.get_node(uri)
|
23
|
-
new(data.body)
|
24
|
-
end
|
25
|
-
rescue Fog::Errors::NotFound
|
26
|
-
nil
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
class Vcloud
|
3
|
-
module Terremark
|
4
|
-
class Ecloud
|
5
|
-
class PublicIp < Fog::Vcloud::Model
|
6
|
-
|
7
|
-
identity :href, :aliases => :Href
|
8
|
-
|
9
|
-
ignore_attributes :xmlns, :xmlns_i
|
10
|
-
|
11
|
-
attribute :name, :aliases => :Name
|
12
|
-
attribute :id, :aliases => :Id
|
13
|
-
|
14
|
-
def internet_services
|
15
|
-
load_unless_loaded!
|
16
|
-
@internet_services ||= Fog::Vcloud::Terremark::Ecloud::InternetServices.
|
17
|
-
new( :connection => connection,
|
18
|
-
:href => href.to_s + "/internetServices" )
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
@@ -1,39 +0,0 @@
|
|
1
|
-
require 'fog/vcloud/terremark/ecloud/models/public_ip'
|
2
|
-
|
3
|
-
module Fog
|
4
|
-
class Vcloud
|
5
|
-
module Terremark
|
6
|
-
class Ecloud
|
7
|
-
|
8
|
-
class PublicIps < Fog::Vcloud::Collection
|
9
|
-
|
10
|
-
undef_method :create
|
11
|
-
|
12
|
-
attribute :href, :aliases => :Href
|
13
|
-
|
14
|
-
model Fog::Vcloud::Terremark::Ecloud::PublicIp
|
15
|
-
|
16
|
-
#get_request :get_public_ip
|
17
|
-
#vcloud_type "application/vnd.tmrk.ecloud.publicIp+xml"
|
18
|
-
#all_request lambda { |public_ips| public_ips.connection.get_public_ips(public_ips.href) }
|
19
|
-
|
20
|
-
def all
|
21
|
-
check_href!(:message => "the Public Ips href of the Vdc you want to enumerate")
|
22
|
-
if data = connection.get_public_ips(href).body[:PublicIPAddress]
|
23
|
-
load(data)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def get(uri)
|
28
|
-
if data = connection.get_public_ip(uri)
|
29
|
-
new(data.body)
|
30
|
-
end
|
31
|
-
rescue Fog::Errors::NotFound
|
32
|
-
nil
|
33
|
-
end
|
34
|
-
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
@@ -1,211 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
class Vcloud
|
3
|
-
module Terremark
|
4
|
-
class Ecloud
|
5
|
-
class Server < Fog::Vcloud::Model
|
6
|
-
|
7
|
-
identity :href, :aliases => :Href
|
8
|
-
|
9
|
-
ignore_attributes :xmlns, :xmlns_i, :xmlns_xsi, :xmlns_xsd
|
10
|
-
|
11
|
-
attribute :type
|
12
|
-
attribute :name
|
13
|
-
attribute :status
|
14
|
-
attribute :network_connections, :aliases => :NetworkConnectionSection, :squash => :NetworkConnection
|
15
|
-
attribute :os, :aliases => :OperatingSystemSection
|
16
|
-
attribute :virtual_hardware, :aliases => :VirtualHardwareSection
|
17
|
-
attribute :storage_size, :aliases => :size
|
18
|
-
attribute :links, :aliases => :Link, :type => :array
|
19
|
-
|
20
|
-
def friendly_status
|
21
|
-
load_unless_loaded!
|
22
|
-
case status
|
23
|
-
when '0'
|
24
|
-
'creating'
|
25
|
-
when '2'
|
26
|
-
'off'
|
27
|
-
when '4'
|
28
|
-
'on'
|
29
|
-
else
|
30
|
-
'unkown'
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
def ready?
|
35
|
-
load_unless_loaded!
|
36
|
-
status == '2'
|
37
|
-
end
|
38
|
-
|
39
|
-
def on?
|
40
|
-
load_unless_loaded!
|
41
|
-
status == '4'
|
42
|
-
end
|
43
|
-
|
44
|
-
def off?
|
45
|
-
load_unless_loaded!
|
46
|
-
status == '2'
|
47
|
-
end
|
48
|
-
|
49
|
-
def power_on
|
50
|
-
power_operation( :power_on => :powerOn )
|
51
|
-
end
|
52
|
-
|
53
|
-
def power_off
|
54
|
-
power_operation( :power_off => :powerOff )
|
55
|
-
end
|
56
|
-
|
57
|
-
def shutdown
|
58
|
-
power_operation( :power_shutdown => :shutdown )
|
59
|
-
end
|
60
|
-
|
61
|
-
def power_reset
|
62
|
-
power_operation( :power_reset => :reset )
|
63
|
-
end
|
64
|
-
|
65
|
-
def graceful_restart
|
66
|
-
requires :href
|
67
|
-
shutdown
|
68
|
-
wait_for { off? }
|
69
|
-
power_on
|
70
|
-
end
|
71
|
-
|
72
|
-
def delete
|
73
|
-
requires :href
|
74
|
-
connection.delete_vapp( href)
|
75
|
-
end
|
76
|
-
|
77
|
-
def name=(new_name)
|
78
|
-
attributes[:name] = new_name
|
79
|
-
@changed = true
|
80
|
-
end
|
81
|
-
|
82
|
-
def cpus
|
83
|
-
if cpu_mess
|
84
|
-
{ :count => cpu_mess[:VirtualQuantity].to_i,
|
85
|
-
:units => cpu_mess[:AllocationUnits] }
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
def cpus=(qty)
|
90
|
-
@changed = true
|
91
|
-
cpu_mess[:VirtualQuantity] = qty.to_s
|
92
|
-
end
|
93
|
-
|
94
|
-
def memory
|
95
|
-
if memory_mess
|
96
|
-
{ :amount => memory_mess[:VirtualQuantity].to_i,
|
97
|
-
:units => memory_mess[:AllocationUnits] }
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
def memory=(amount)
|
102
|
-
@changed = true
|
103
|
-
memory_mess[:VirtualQuantity] = amount.to_s
|
104
|
-
end
|
105
|
-
|
106
|
-
def disks
|
107
|
-
disk_mess.map do |dm|
|
108
|
-
{ :number => dm[:AddressOnParent], :size => dm[:VirtualQuantity].to_i, :resource => dm[:HostResource] }
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
def add_disk(size)
|
113
|
-
if @disk_change == :deleted
|
114
|
-
raise RuntimeError, "Can't add a disk w/o saving changes or reloading"
|
115
|
-
else
|
116
|
-
@disk_change = :added
|
117
|
-
load_unless_loaded!
|
118
|
-
virtual_hardware[:Item] << { :ResourceType => '17',
|
119
|
-
:AddressOnParent => (disk_mess.map { |dm| dm[:AddressOnParent] }.sort.last.to_i + 1).to_s,
|
120
|
-
:VirtualQuantity => size.to_s }
|
121
|
-
end
|
122
|
-
true
|
123
|
-
end
|
124
|
-
|
125
|
-
def delete_disk(number)
|
126
|
-
if @disk_change == :added
|
127
|
-
raise RuntimeError, "Can't delete a disk w/o saving changes or reloading"
|
128
|
-
else
|
129
|
-
@disk_change = :deleted
|
130
|
-
load_unless_loaded!
|
131
|
-
unless number == 0
|
132
|
-
virtual_hardware[:Item].delete_if { |vh| vh[:ResourceType] == '17' && vh[:AddressOnParent].to_i == number }
|
133
|
-
end
|
134
|
-
end
|
135
|
-
true
|
136
|
-
end
|
137
|
-
|
138
|
-
def reload
|
139
|
-
reset_tracking
|
140
|
-
super
|
141
|
-
end
|
142
|
-
|
143
|
-
def save
|
144
|
-
if new_record?
|
145
|
-
#Lame ...
|
146
|
-
raise RuntimeError, "Should not be here"
|
147
|
-
else
|
148
|
-
if on?
|
149
|
-
if @changed
|
150
|
-
raise RuntimeError, "Can't save cpu, name or memory changes while the VM is on."
|
151
|
-
end
|
152
|
-
end
|
153
|
-
connection.configure_vapp( href, _compose_vapp_data )
|
154
|
-
end
|
155
|
-
reset_tracking
|
156
|
-
end
|
157
|
-
|
158
|
-
private
|
159
|
-
|
160
|
-
def reset_tracking
|
161
|
-
@disk_change = false
|
162
|
-
@changed = false
|
163
|
-
end
|
164
|
-
|
165
|
-
def _compose_vapp_data
|
166
|
-
{ :name => name,
|
167
|
-
:cpus => cpus[:count],
|
168
|
-
:memory => memory[:amount],
|
169
|
-
:disks => disks
|
170
|
-
}
|
171
|
-
end
|
172
|
-
|
173
|
-
def memory_mess
|
174
|
-
load_unless_loaded!
|
175
|
-
if virtual_hardware && virtual_hardware[:Item]
|
176
|
-
virtual_hardware[:Item].detect { |item| item[:ResourceType] == "4" }
|
177
|
-
end
|
178
|
-
end
|
179
|
-
|
180
|
-
def cpu_mess
|
181
|
-
load_unless_loaded!
|
182
|
-
if virtual_hardware && virtual_hardware[:Item]
|
183
|
-
virtual_hardware[:Item].detect { |item| item[:ResourceType] == "3" }
|
184
|
-
end
|
185
|
-
end
|
186
|
-
|
187
|
-
def disk_mess
|
188
|
-
load_unless_loaded!
|
189
|
-
if virtual_hardware && virtual_hardware[:Item]
|
190
|
-
virtual_hardware[:Item].select { |item| item[:ResourceType] == "17" }
|
191
|
-
else
|
192
|
-
[]
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
|
-
def power_operation(op)
|
197
|
-
requires :href
|
198
|
-
begin
|
199
|
-
connection.send(op.keys.first, href + "/power/action/#{op.values.first}" )
|
200
|
-
rescue Excon::Errors::InternalServerError => e
|
201
|
-
#Frankly we shouldn't get here ...
|
202
|
-
raise e unless e.to_s =~ /because it is already powered o(n|ff)/
|
203
|
-
end
|
204
|
-
true
|
205
|
-
end
|
206
|
-
|
207
|
-
end
|
208
|
-
end
|
209
|
-
end
|
210
|
-
end
|
211
|
-
end
|