fog 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/fog.gemspec +1 -1
- data/lib/fog.rb +15 -4
- data/lib/fog/aws/ec2.rb +10 -2
- data/lib/fog/aws/models/ec2/addresses.rb +1 -1
- data/lib/fog/aws/models/ec2/images.rb +1 -1
- data/lib/fog/aws/models/ec2/key_pairs.rb +1 -1
- data/lib/fog/aws/models/ec2/security_groups.rb +1 -1
- data/lib/fog/aws/models/ec2/servers.rb +1 -1
- data/lib/fog/aws/models/ec2/snapshots.rb +1 -1
- data/lib/fog/aws/models/ec2/volumes.rb +1 -1
- data/lib/fog/aws/requests/ec2/describe_reserved_instances.rb +1 -1
- data/lib/fog/aws/requests/ec2/modify_image_attributes.rb +1 -1
- data/lib/fog/aws/requests/elb/create_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/delete_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/deregister_instances_from_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/describe_instance_health.rb +1 -1
- data/lib/fog/aws/requests/elb/describe_load_balancers.rb +1 -1
- data/lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/register_instances_with_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/s3/get_bucket_acl.rb +1 -1
- data/lib/fog/aws/requests/s3/get_bucket_logging.rb +1 -1
- data/lib/fog/aws/requests/s3/get_bucket_object_versions.rb +1 -1
- data/lib/fog/aws/requests/s3/get_bucket_versioning.rb +1 -1
- data/lib/fog/aws/requests/s3/get_object_acl.rb +1 -1
- data/lib/fog/aws/requests/s3/get_object_torrent.rb +1 -1
- data/lib/fog/aws/requests/s3/put_bucket_acl.rb +1 -1
- data/lib/fog/aws/requests/s3/put_bucket_logging.rb +1 -1
- data/lib/fog/aws/requests/s3/put_bucket_versioning.rb +1 -1
- data/lib/fog/aws/requests/simpledb/select.rb +1 -1
- data/lib/fog/rackspace/requests/files/delete_container.rb +1 -1
- data/lib/fog/rackspace/requests/files/delete_object.rb +1 -1
- data/lib/fog/rackspace/requests/files/get_container.rb +1 -1
- data/lib/fog/rackspace/requests/files/get_containers.rb +1 -1
- data/lib/fog/rackspace/requests/files/get_object.rb +1 -1
- data/lib/fog/rackspace/requests/files/head_container.rb +1 -1
- data/lib/fog/rackspace/requests/files/head_containers.rb +1 -1
- data/lib/fog/rackspace/requests/files/head_object.rb +1 -1
- data/lib/fog/rackspace/requests/files/put_container.rb +1 -1
- data/lib/fog/rackspace/requests/files/put_object.rb +1 -1
- data/lib/fog/rackspace/requests/servers/get_flavor_details.rb +1 -1
- data/lib/fog/rackspace/requests/servers/get_image_details.rb +1 -1
- data/lib/fog/rackspace/requests/servers/list_flavors.rb +1 -1
- data/lib/fog/rackspace/requests/servers/list_flavors_detail.rb +1 -1
- data/lib/fog/rackspace/requests/servers/reboot_server.rb +1 -1
- data/lib/fog/slicehost/requests/create_slice.rb +1 -1
- data/lib/fog/slicehost/requests/delete_slice.rb +1 -1
- data/lib/fog/slicehost/requests/get_backups.rb +1 -1
- data/lib/fog/slicehost/requests/get_flavor.rb +1 -1
- data/lib/fog/slicehost/requests/get_flavors.rb +1 -1
- data/lib/fog/slicehost/requests/get_image.rb +1 -1
- data/lib/fog/slicehost/requests/get_images.rb +1 -1
- data/lib/fog/slicehost/requests/get_slice.rb +1 -1
- data/lib/fog/slicehost/requests/get_slices.rb +1 -1
- data/lib/fog/slicehost/requests/reboot_slice.rb +1 -1
- data/lib/fog/ssh.rb +1 -1
- data/lib/fog/terremark/requests/shared/add_internet_service.rb +1 -1
- data/lib/fog/terremark/requests/shared/add_node_service.rb +1 -1
- data/lib/fog/terremark/requests/shared/create_internet_service.rb +1 -1
- data/lib/fog/terremark/requests/shared/delete_internet_service.rb +1 -1
- data/lib/fog/terremark/requests/shared/delete_node_service.rb +1 -1
- data/lib/fog/terremark/requests/shared/delete_public_ip.rb +1 -1
- data/lib/fog/terremark/requests/shared/delete_vapp.rb +1 -1
- data/lib/fog/terremark/requests/shared/deploy_vapp.rb +1 -1
- data/lib/fog/terremark/requests/shared/get_catalog.rb +1 -1
- data/lib/fog/terremark/requests/shared/get_catalog_item.rb +1 -1
- data/lib/fog/terremark/requests/shared/get_internet_services.rb +1 -1
- data/lib/fog/terremark/requests/shared/get_network_ips.rb +1 -1
- data/lib/fog/terremark/requests/shared/get_node_services.rb +1 -1
- data/lib/fog/terremark/requests/shared/get_public_ip.rb +1 -1
- data/lib/fog/terremark/requests/shared/get_task.rb +1 -1
- data/lib/fog/terremark/requests/shared/get_tasks_list.rb +1 -1
- data/lib/fog/terremark/requests/shared/get_vapp.rb +1 -1
- data/lib/fog/terremark/requests/shared/get_vapp_template.rb +1 -1
- data/lib/fog/terremark/requests/shared/instantiate_vapp_template.rb +1 -1
- data/lib/fog/terremark/requests/shared/power_off.rb +1 -1
- data/lib/fog/terremark/requests/shared/power_on.rb +1 -1
- data/lib/fog/terremark/requests/shared/power_reset.rb +1 -1
- data/lib/fog/terremark/requests/shared/power_shutdown.rb +1 -1
- data/tests/aws/helper.rb +0 -89
- data/tests/aws/requests/ec2/address_tests.rb +10 -2
- data/tests/aws/requests/ec2/availability_zone_tests.rb +11 -2
- data/tests/aws/requests/ec2/key_pair_tests.rb +18 -3
- data/tests/aws/requests/ec2/region_tests.rb +10 -2
- data/tests/aws/requests/ec2/security_group_tests.rb +18 -2
- data/tests/aws/requests/ec2/snapshot_tests.rb +21 -4
- data/tests/aws/requests/ec2/volume_tests.rb +43 -8
- data/tests/helper_tests.rb +7 -36
- metadata +2 -2
data/lib/fog/ssh.rb
CHANGED
data/tests/aws/helper.rb
CHANGED
@@ -33,100 +33,11 @@ module AWS
|
|
33
33
|
|
34
34
|
module Formats
|
35
35
|
|
36
|
-
ADDRESSES = {
|
37
|
-
'addressesSet' => [{
|
38
|
-
'instanceId' => NilClass,
|
39
|
-
'publicIp' => String
|
40
|
-
}],
|
41
|
-
'requestId' => String
|
42
|
-
}
|
43
|
-
|
44
|
-
AVAILABILITY_ZONES = {
|
45
|
-
'availabilityZoneInfo' => [{
|
46
|
-
'regionName' => String,
|
47
|
-
'zoneName' => String,
|
48
|
-
'zoneState' => String
|
49
|
-
}],
|
50
|
-
'requestId' => String
|
51
|
-
}
|
52
|
-
|
53
36
|
BASIC = {
|
54
37
|
'requestId' => String,
|
55
38
|
'return' => ::Fog::Boolean
|
56
39
|
}
|
57
40
|
|
58
|
-
REGIONS = {
|
59
|
-
'regionInfo' => [{
|
60
|
-
'regionEndpoint' => String,
|
61
|
-
'regionName' => String
|
62
|
-
}],
|
63
|
-
'requestId' => String
|
64
|
-
}
|
65
|
-
|
66
|
-
SECURITY_GROUPS = {
|
67
|
-
'requestId' => String,
|
68
|
-
'securityGroupInfo' => [{
|
69
|
-
'groupDescription' => String,
|
70
|
-
'groupName' => String,
|
71
|
-
'ipPermissions' => [{
|
72
|
-
'fromPort' => Integer,
|
73
|
-
'groups' => [{ 'groupName' => String, 'userId' => String }],
|
74
|
-
'ipProtocol' => String,
|
75
|
-
'ipRanges' => [],
|
76
|
-
'toPort' => Integer,
|
77
|
-
}],
|
78
|
-
'ownerId' => String
|
79
|
-
}]
|
80
|
-
}
|
81
|
-
|
82
|
-
SNAPSHOT = {
|
83
|
-
'description' => NilClass,
|
84
|
-
'ownerId' => String,
|
85
|
-
'progress' => String,
|
86
|
-
'snapshotId' => String,
|
87
|
-
'startTime' => Time,
|
88
|
-
'status' => String,
|
89
|
-
'volumeId' => String,
|
90
|
-
'volumeSize' => Integer
|
91
|
-
}
|
92
|
-
|
93
|
-
SNAPSHOTS = {
|
94
|
-
'requestId' => String,
|
95
|
-
'snapshotSet' => [SNAPSHOT]
|
96
|
-
}
|
97
|
-
|
98
|
-
VOLUME = {
|
99
|
-
'availabilityZone' => String,
|
100
|
-
'createTime' => Time,
|
101
|
-
'requestId' => String,
|
102
|
-
'size' => Integer,
|
103
|
-
'snapshotId' => NilClass,
|
104
|
-
'status' => String,
|
105
|
-
'volumeId' => String
|
106
|
-
}
|
107
|
-
|
108
|
-
VOLUME_ATTACHMENT = {
|
109
|
-
'attachTime' => Time,
|
110
|
-
'device' => String,
|
111
|
-
'instanceId' => String,
|
112
|
-
'requestId' => String,
|
113
|
-
'status' => String,
|
114
|
-
'volumeId' => String
|
115
|
-
}
|
116
|
-
|
117
|
-
VOLUMES = {
|
118
|
-
'volumeSet' => [{
|
119
|
-
'availabilityZone' => String,
|
120
|
-
'attachmentSet' => [],
|
121
|
-
'createTime' => Time,
|
122
|
-
'size' => Integer,
|
123
|
-
'snapshotId' => NilClass,
|
124
|
-
'status' => String,
|
125
|
-
'volumeId' => String
|
126
|
-
}],
|
127
|
-
'requestId' => String
|
128
|
-
}
|
129
|
-
|
130
41
|
end
|
131
42
|
|
132
43
|
end
|