fog 0.0.42 → 0.0.43
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/Rakefile +1 -0
- data/VERSION.yml +2 -2
- data/bin/fog +23 -102
- data/fog.gemspec +48 -2
- data/lib/fog.rb +17 -46
- data/lib/fog/aws.rb +10 -4
- data/lib/fog/aws/bin.rb +69 -0
- data/lib/fog/aws/ec2.rb +82 -86
- data/lib/fog/aws/requests/ec2/authorize_security_group_ingress.rb +20 -16
- data/lib/fog/aws/requests/ec2/revoke_security_group_ingress.rb +19 -15
- data/lib/fog/aws/requests/s3/get_object.rb +4 -0
- data/lib/fog/aws/requests/simpledb/select.rb +42 -24
- data/lib/fog/aws/s3.rb +28 -25
- data/lib/fog/aws/simpledb.rb +21 -17
- data/lib/fog/bin.rb +79 -0
- data/lib/fog/collection.rb +20 -9
- data/lib/fog/model.rb +9 -4
- data/lib/fog/rackspace.rb +10 -3
- data/lib/fog/rackspace/bin.rb +44 -0
- data/lib/fog/rackspace/files.rb +16 -9
- data/lib/fog/rackspace/requests/files/delete_container.rb +2 -1
- data/lib/fog/rackspace/requests/files/delete_object.rb +2 -1
- data/lib/fog/rackspace/requests/files/get_container.rb +2 -1
- data/lib/fog/rackspace/requests/files/get_containers.rb +2 -1
- data/lib/fog/rackspace/requests/files/head_container.rb +2 -1
- data/lib/fog/rackspace/requests/files/head_containers.rb +2 -1
- data/lib/fog/rackspace/requests/files/put_container.rb +2 -1
- data/lib/fog/rackspace/requests/files/put_object.rb +2 -1
- data/lib/fog/rackspace/requests/servers/get_flavor_details.rb +1 -0
- data/lib/fog/rackspace/requests/servers/list_flavors.rb +1 -0
- data/lib/fog/rackspace/requests/servers/list_flavors_detail.rb +1 -0
- data/lib/fog/rackspace/requests/servers/list_images.rb +0 -1
- data/lib/fog/rackspace/requests/servers/reboot_server.rb +2 -1
- data/lib/fog/rackspace/servers.rb +31 -26
- data/lib/fog/slicehost.rb +35 -17
- data/lib/fog/slicehost/bin.rb +42 -0
- data/lib/fog/slicehost/models/flavor.rb +41 -0
- data/lib/fog/slicehost/models/flavors.rb +33 -0
- data/lib/fog/slicehost/models/image.rb +13 -0
- data/lib/fog/slicehost/models/images.rb +35 -0
- data/lib/fog/slicehost/models/server.rb +55 -0
- data/lib/fog/slicehost/models/servers.rb +37 -0
- data/lib/fog/slicehost/parsers/get_flavor.rb +24 -0
- data/lib/fog/slicehost/parsers/get_image.rb +24 -0
- data/lib/fog/slicehost/parsers/get_slice.rb +29 -0
- data/lib/fog/slicehost/requests/create_slice.rb +2 -1
- data/lib/fog/slicehost/requests/delete_slice.rb +2 -1
- data/lib/fog/slicehost/requests/get_backups.rb +1 -0
- data/lib/fog/slicehost/requests/get_flavor.rb +42 -0
- data/lib/fog/slicehost/requests/get_flavors.rb +1 -0
- data/lib/fog/slicehost/requests/get_image.rb +40 -0
- data/lib/fog/slicehost/requests/get_images.rb +1 -0
- data/lib/fog/slicehost/requests/get_slice.rb +48 -0
- data/lib/fog/slicehost/requests/get_slices.rb +1 -0
- data/lib/fog/slicehost/requests/reboot_slice.rb +49 -0
- data/lib/fog/terremark.rb +71 -0
- data/lib/fog/terremark/bin.rb +30 -0
- data/lib/fog/terremark/parsers/get_catalog.rb +43 -0
- data/lib/fog/terremark/parsers/get_catalog_item.rb +44 -0
- data/lib/fog/terremark/parsers/get_organization.rb +44 -0
- data/lib/fog/terremark/parsers/get_organizations.rb +26 -0
- data/lib/fog/terremark/parsers/get_vapp_template.rb +44 -0
- data/lib/fog/terremark/parsers/get_vdc.rb +105 -0
- data/lib/fog/terremark/requests/get_catalog.rb +44 -0
- data/lib/fog/terremark/requests/get_catalog_item.rb +47 -0
- data/lib/fog/terremark/requests/get_organization.rb +46 -0
- data/lib/fog/terremark/requests/get_organizations.rb +42 -0
- data/lib/fog/terremark/requests/get_vapp_template.rb +47 -0
- data/lib/fog/terremark/requests/get_vdc.rb +47 -0
- data/spec/slicehost/models/server_spec.rb +51 -0
- data/spec/slicehost/models/servers_spec.rb +22 -0
- data/spec/slicehost/requests/get_flavor_spec.rb +24 -0
- data/spec/slicehost/requests/get_image_spec.rb +24 -0
- data/spec/slicehost/requests/get_slice_spec.rb +41 -0
- data/spec/slicehost/requests/get_slices_spec.rb +20 -9
- data/spec/slicehost/requests/reboot_slice_spec.rb +41 -0
- data/spec/spec_helper.rb +10 -0
- metadata +55 -2
data/lib/fog/aws/ec2.rb
CHANGED
@@ -19,94 +19,80 @@ module Fog
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
def self.
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
load "fog/aws/requests/ec2/disassociate_address.rb"
|
91
|
-
load "fog/aws/requests/ec2/get_console_output.rb"
|
92
|
-
# TODO: require "fog/aws/requests/ec2/modify_image_attribute.rb"
|
93
|
-
# TODO: require "fog/aws/requests/ec2/modify_snapshot_attribute.rb"
|
94
|
-
# TODO: require "fog/aws/requests/ec2/monitor_instances.rb"
|
95
|
-
# TODO: require "fog/aws/requests/ec2/purchase_reserved_instances_offering.rb"
|
96
|
-
load "fog/aws/requests/ec2/reboot_instances.rb"
|
97
|
-
# TODO: require "fog/aws/requests/ec2/register_image.rb"
|
98
|
-
load "fog/aws/requests/ec2/release_address.rb"
|
99
|
-
# TODO: require "fog/aws/requests/ec2/reset_image_attributes.rb"
|
100
|
-
# TODO: require "fog/aws/requests/ec2/reset_snapshot_attributes.rb"
|
101
|
-
load "fog/aws/requests/ec2/revoke_security_group_ingress.rb"
|
102
|
-
load "fog/aws/requests/ec2/run_instances.rb"
|
103
|
-
load "fog/aws/requests/ec2/terminate_instances.rb"
|
104
|
-
# TODO: require "fog/aws/requests/ec2/unmonitor_instances.rb"
|
22
|
+
def self.dependencies
|
23
|
+
[
|
24
|
+
"fog/aws/models/ec2/address.rb",
|
25
|
+
"fog/aws/models/ec2/addresses.rb",
|
26
|
+
"fog/aws/models/ec2/flavor.rb",
|
27
|
+
"fog/aws/models/ec2/flavors.rb",
|
28
|
+
"fog/aws/models/ec2/image.rb",
|
29
|
+
"fog/aws/models/ec2/images.rb",
|
30
|
+
"fog/aws/models/ec2/key_pair.rb",
|
31
|
+
"fog/aws/models/ec2/key_pairs.rb",
|
32
|
+
"fog/aws/models/ec2/security_group.rb",
|
33
|
+
"fog/aws/models/ec2/security_groups.rb",
|
34
|
+
"fog/aws/models/ec2/server.rb",
|
35
|
+
"fog/aws/models/ec2/servers.rb",
|
36
|
+
"fog/aws/models/ec2/snapshot.rb",
|
37
|
+
"fog/aws/models/ec2/snapshots.rb",
|
38
|
+
"fog/aws/models/ec2/volume.rb",
|
39
|
+
"fog/aws/models/ec2/volumes.rb",
|
40
|
+
"fog/aws/parsers/ec2/allocate_address.rb",
|
41
|
+
"fog/aws/parsers/ec2/attach_volume.rb",
|
42
|
+
"fog/aws/parsers/ec2/basic.rb",
|
43
|
+
"fog/aws/parsers/ec2/create_key_pair.rb",
|
44
|
+
"fog/aws/parsers/ec2/create_snapshot.rb",
|
45
|
+
"fog/aws/parsers/ec2/create_volume.rb",
|
46
|
+
"fog/aws/parsers/ec2/describe_addresses.rb",
|
47
|
+
"fog/aws/parsers/ec2/describe_availability_zones.rb",
|
48
|
+
"fog/aws/parsers/ec2/describe_images.rb",
|
49
|
+
"fog/aws/parsers/ec2/describe_instances.rb",
|
50
|
+
"fog/aws/parsers/ec2/describe_key_pairs.rb",
|
51
|
+
"fog/aws/parsers/ec2/describe_regions.rb",
|
52
|
+
"fog/aws/parsers/ec2/describe_security_groups.rb",
|
53
|
+
"fog/aws/parsers/ec2/describe_snapshots.rb",
|
54
|
+
"fog/aws/parsers/ec2/describe_volumes.rb",
|
55
|
+
"fog/aws/parsers/ec2/detach_volume.rb",
|
56
|
+
"fog/aws/parsers/ec2/get_console_output.rb",
|
57
|
+
"fog/aws/parsers/ec2/run_instances.rb",
|
58
|
+
"fog/aws/parsers/ec2/terminate_instances.rb",
|
59
|
+
"fog/aws/requests/ec2/allocate_address.rb",
|
60
|
+
"fog/aws/requests/ec2/associate_address.rb",
|
61
|
+
"fog/aws/requests/ec2/attach_volume.rb",
|
62
|
+
"fog/aws/requests/ec2/authorize_security_group_ingress.rb",
|
63
|
+
"fog/aws/requests/ec2/create_key_pair.rb",
|
64
|
+
"fog/aws/requests/ec2/create_security_group.rb",
|
65
|
+
"fog/aws/requests/ec2/create_snapshot.rb",
|
66
|
+
"fog/aws/requests/ec2/create_volume.rb",
|
67
|
+
"fog/aws/requests/ec2/delete_key_pair.rb",
|
68
|
+
"fog/aws/requests/ec2/delete_security_group.rb",
|
69
|
+
"fog/aws/requests/ec2/delete_snapshot.rb",
|
70
|
+
"fog/aws/requests/ec2/delete_volume.rb",
|
71
|
+
"fog/aws/requests/ec2/describe_addresses.rb",
|
72
|
+
"fog/aws/requests/ec2/describe_availability_zones.rb",
|
73
|
+
"fog/aws/requests/ec2/describe_images.rb",
|
74
|
+
"fog/aws/requests/ec2/describe_instances.rb",
|
75
|
+
"fog/aws/requests/ec2/describe_key_pairs.rb",
|
76
|
+
"fog/aws/requests/ec2/describe_regions.rb",
|
77
|
+
"fog/aws/requests/ec2/describe_security_groups.rb",
|
78
|
+
"fog/aws/requests/ec2/describe_snapshots.rb",
|
79
|
+
"fog/aws/requests/ec2/describe_volumes.rb",
|
80
|
+
"fog/aws/requests/ec2/detach_volume.rb",
|
81
|
+
"fog/aws/requests/ec2/disassociate_address.rb",
|
82
|
+
"fog/aws/requests/ec2/get_console_output.rb",
|
83
|
+
"fog/aws/requests/ec2/reboot_instances.rb",
|
84
|
+
"fog/aws/requests/ec2/release_address.rb",
|
85
|
+
"fog/aws/requests/ec2/revoke_security_group_ingress.rb",
|
86
|
+
"fog/aws/requests/ec2/run_instances.rb",
|
87
|
+
"fog/aws/requests/ec2/terminate_instances.rb"
|
88
|
+
]
|
89
|
+
end
|
105
90
|
|
91
|
+
def self.reload
|
92
|
+
self.dependencies.each {|dependency| load(dependency)}
|
106
93
|
if Fog.mocking?
|
107
94
|
reset_data
|
108
95
|
end
|
109
|
-
|
110
96
|
end
|
111
97
|
|
112
98
|
# Initialize connection to EC2
|
@@ -123,6 +109,7 @@ module Fog
|
|
123
109
|
#
|
124
110
|
# ==== Parameters
|
125
111
|
# * options<~Hash> - config arguments for connection. Defaults to {}.
|
112
|
+
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1']
|
126
113
|
#
|
127
114
|
# ==== Returns
|
128
115
|
# * EC2 object with connection to aws.
|
@@ -134,7 +121,16 @@ module Fog
|
|
134
121
|
raise ArgumentError.new('aws_secret_access_key is required to access ec2')
|
135
122
|
end
|
136
123
|
@hmac = HMAC::SHA256.new(@aws_secret_access_key)
|
137
|
-
@host
|
124
|
+
@host = options[:host] || case options[:region]
|
125
|
+
when 'eu-west-1'
|
126
|
+
'ec2.eu-west-1.amazonaws.com'
|
127
|
+
when 'us-east-1'
|
128
|
+
'ec2.us-east-1.amazonaws.com'
|
129
|
+
when 'us-west-1'
|
130
|
+
'ec2.us-west-1.amazonaws.com'
|
131
|
+
else
|
132
|
+
'ec2.amazonaws.com'
|
133
|
+
end
|
138
134
|
@port = options[:port] || 443
|
139
135
|
@scheme = options[:scheme] || 'https'
|
140
136
|
end
|
@@ -178,4 +174,4 @@ module Fog
|
|
178
174
|
end
|
179
175
|
end
|
180
176
|
|
181
|
-
Fog::AWS::EC2.
|
177
|
+
Fog::AWS::EC2.dependencies.each {|dependency| require(dependency)}
|
@@ -41,24 +41,28 @@ else
|
|
41
41
|
|
42
42
|
# TODO: handle the GroupName/Source/Source case
|
43
43
|
def authorize_security_group_ingress(options = {})
|
44
|
-
|
45
|
-
|
44
|
+
if options['GroupName'] && options['SourceSecurityGroupName'] && options['SourceSecurityGroupOwnerId']
|
45
|
+
raise MockNotImplemented.new("Contributions welcome!")
|
46
|
+
else
|
47
|
+
response = Excon::Response.new
|
48
|
+
group = Fog::AWS::EC2.data[:security_groups][options['GroupName']]
|
46
49
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
50
|
+
group['ipPermissions'] ||= []
|
51
|
+
group['ipPermissions'] << {
|
52
|
+
'groups' => [],
|
53
|
+
'fromPort' => options['FromPort'],
|
54
|
+
'ipRanges' => [{ 'cidrIp' => options['CidrIp'] }],
|
55
|
+
'ipProtocol' => options['IpProtocol'],
|
56
|
+
'toPort' => options['ToPort']
|
57
|
+
}
|
55
58
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
59
|
+
response.status = 200
|
60
|
+
response.body = {
|
61
|
+
'requestId' => Fog::AWS::Mock.request_id,
|
62
|
+
'return' => true
|
63
|
+
}
|
64
|
+
response
|
65
|
+
end
|
62
66
|
end
|
63
67
|
|
64
68
|
end
|
@@ -41,24 +41,28 @@ else
|
|
41
41
|
|
42
42
|
# TODO: handle the GroupName/Source/Source case
|
43
43
|
def revoke_security_group_ingress(options = {})
|
44
|
-
|
45
|
-
|
44
|
+
if options['GroupName'] && options['SourceSecurityGroupName'] && options['SourceSecurityGroupOwnerId']
|
45
|
+
raise MockNotImplemented.new("Contributions welcome!")
|
46
|
+
else
|
47
|
+
response = Excon::Response.new
|
48
|
+
group = Fog::AWS::EC2.data[:security_groups][options['GroupName']]
|
46
49
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
50
|
+
ingress = group['ipPermissions'].select {|permission|
|
51
|
+
permission['fromPort'] == options['FromPort'] &&
|
52
|
+
permission['ipProtocol'] == options['IpProtocol'] &&
|
53
|
+
permission['toPort'] == options['ToPort'] &&
|
54
|
+
permission['ipRanges'].first['cidrIp'] == options['CidrIp']
|
55
|
+
}.first
|
53
56
|
|
54
|
-
|
57
|
+
group['ipPermissions'].delete(ingress)
|
55
58
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
59
|
+
response.status = 200
|
60
|
+
response.body = {
|
61
|
+
'requestId' => Fog::AWS::Mock.request_id,
|
62
|
+
'return' => true
|
63
|
+
}
|
64
|
+
response
|
65
|
+
end
|
62
66
|
end
|
63
67
|
|
64
68
|
end
|
@@ -1,29 +1,47 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
1
|
+
unless Fog.mocking?
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module AWS
|
5
|
+
class SimpleDB
|
6
|
+
|
7
|
+
# Select item data from SimpleDB
|
8
|
+
#
|
9
|
+
# ==== Parameters
|
10
|
+
# * select_expression<~String> - Expression to query domain with.
|
11
|
+
# * next_token<~String> - Offset token to start list, defaults to nil.
|
12
|
+
#
|
13
|
+
# ==== Returns
|
14
|
+
# * response<~Excon::Response>:
|
15
|
+
# * body<~Hash>:
|
16
|
+
# * 'BoxUsage'<~Float>
|
17
|
+
# * 'RequestId'<~String>
|
18
|
+
# * 'Items'<~Hash> - list of attribute name/values for the items formatted as
|
19
|
+
# { 'item_name' => { 'attribute_name' => ['attribute_value'] }}
|
20
|
+
# * 'NextToken'<~String> - offset to start with if there are are more domains to list
|
21
|
+
def select(select_expression, next_token = nil)
|
22
|
+
request({
|
23
|
+
'Action' => 'Select',
|
24
|
+
'NextToken' => next_token,
|
25
|
+
'SelectExpression' => select_expression
|
26
|
+
}, Fog::Parsers::AWS::SimpleDB::Select.new(@nil_string))
|
27
|
+
end
|
28
|
+
|
25
29
|
end
|
30
|
+
end
|
31
|
+
end
|
26
32
|
|
33
|
+
else
|
34
|
+
|
35
|
+
module Fog
|
36
|
+
module AWS
|
37
|
+
class SimpleDB
|
38
|
+
|
39
|
+
def select(select_expression, next_token = nil)
|
40
|
+
raise MockNotImplemented.new("Contributions welcome!")
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
27
44
|
end
|
28
45
|
end
|
46
|
+
|
29
47
|
end
|
data/lib/fog/aws/s3.rb
CHANGED
@@ -11,31 +11,34 @@ module Fog
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
def self.
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
14
|
+
def self.dependencies
|
15
|
+
[
|
16
|
+
"fog/aws/models/s3/directory.rb",
|
17
|
+
"fog/aws/models/s3/directories.rb",
|
18
|
+
"fog/aws/models/s3/file.rb",
|
19
|
+
"fog/aws/models/s3/files.rb",
|
20
|
+
"fog/aws/parsers/s3/copy_object.rb",
|
21
|
+
"fog/aws/parsers/s3/get_bucket.rb",
|
22
|
+
"fog/aws/parsers/s3/get_bucket_location.rb",
|
23
|
+
"fog/aws/parsers/s3/get_request_payment.rb",
|
24
|
+
"fog/aws/parsers/s3/get_service.rb",
|
25
|
+
"fog/aws/requests/s3/copy_object.rb",
|
26
|
+
"fog/aws/requests/s3/delete_bucket.rb",
|
27
|
+
"fog/aws/requests/s3/delete_object.rb",
|
28
|
+
"fog/aws/requests/s3/get_bucket.rb",
|
29
|
+
"fog/aws/requests/s3/get_bucket_location.rb",
|
30
|
+
"fog/aws/requests/s3/get_object.rb",
|
31
|
+
"fog/aws/requests/s3/get_request_payment.rb",
|
32
|
+
"fog/aws/requests/s3/get_service.rb",
|
33
|
+
"fog/aws/requests/s3/head_object.rb",
|
34
|
+
"fog/aws/requests/s3/put_bucket.rb",
|
35
|
+
"fog/aws/requests/s3/put_object.rb",
|
36
|
+
"fog/aws/requests/s3/put_request_payment.rb"
|
37
|
+
]
|
38
|
+
end
|
38
39
|
|
40
|
+
def self.reload
|
41
|
+
self.dependencies.each {|dependency| load(dependency)}
|
39
42
|
if Fog.mocking?
|
40
43
|
reset_data
|
41
44
|
end
|
@@ -164,4 +167,4 @@ DATA
|
|
164
167
|
end
|
165
168
|
end
|
166
169
|
|
167
|
-
Fog::AWS::S3.
|
170
|
+
Fog::AWS::S3.dependencies.each {|dependency| require(dependency)}
|
data/lib/fog/aws/simpledb.rb
CHANGED
@@ -11,23 +11,27 @@ module Fog
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
def self.
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
14
|
+
def self.dependencies
|
15
|
+
[
|
16
|
+
"fog/aws/parsers/simpledb/basic.rb",
|
17
|
+
"fog/aws/parsers/simpledb/domain_metadata.rb",
|
18
|
+
"fog/aws/parsers/simpledb/get_attributes.rb",
|
19
|
+
"fog/aws/parsers/simpledb/list_domains.rb",
|
20
|
+
"fog/aws/parsers/simpledb/select.rb",
|
21
|
+
"fog/aws/requests/simpledb/batch_put_attributes.rb",
|
22
|
+
"fog/aws/requests/simpledb/create_domain.rb",
|
23
|
+
"fog/aws/requests/simpledb/delete_attributes.rb",
|
24
|
+
"fog/aws/requests/simpledb/delete_domain.rb",
|
25
|
+
"fog/aws/requests/simpledb/domain_metadata.rb",
|
26
|
+
"fog/aws/requests/simpledb/get_attributes.rb",
|
27
|
+
"fog/aws/requests/simpledb/list_domains.rb",
|
28
|
+
"fog/aws/requests/simpledb/put_attributes.rb",
|
29
|
+
"fog/aws/requests/simpledb/select.rb"
|
30
|
+
]
|
31
|
+
end
|
30
32
|
|
33
|
+
def self.reload
|
34
|
+
self.dependencies.each {|dependency| load(dependency)}
|
31
35
|
if Fog.mocking?
|
32
36
|
reset_data
|
33
37
|
end
|
@@ -152,4 +156,4 @@ module Fog
|
|
152
156
|
end
|
153
157
|
end
|
154
158
|
|
155
|
-
Fog::AWS::SimpleDB.
|
159
|
+
Fog::AWS::SimpleDB.dependencies.each {|dependency| require(dependency)}
|