aws 2.3.24 → 2.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/acf/right_acf_interface.rb +6 -2
- data/lib/sdb/right_sdb_interface.rb +1 -1
- metadata +3 -3
@@ -142,7 +142,7 @@ module Aws
|
|
142
142
|
# Raises AwsError if any banana happened.
|
143
143
|
def request_info(request, parser, &block) # :nodoc:
|
144
144
|
thread = @params[:multi_thread] ? Thread.current : Thread.main
|
145
|
-
thread[:acf_connection] ||=
|
145
|
+
thread[:acf_connection] ||= Rightscale::HttpConnection.new(:exception => Aws::AwsError, :logger => @logger)
|
146
146
|
request_info_impl(thread[:acf_connection], @@bench, request, parser, &block)
|
147
147
|
end
|
148
148
|
|
@@ -278,7 +278,9 @@ module Aws
|
|
278
278
|
# :e_tag => "E39OHHU1ON65SI",
|
279
279
|
# :cnames => ["web1.my-awesome-site.net", "web2.my-awesome-site.net"]
|
280
280
|
# :comment => "Woo-Hoo!",
|
281
|
-
# :origin => "my-bucket.s3.amazonaws.com"
|
281
|
+
# :origin => "my-bucket.s3.amazonaws.com",
|
282
|
+
# :default_root_object =>
|
283
|
+
# }
|
282
284
|
# config[:comment] = 'Olah-lah!'
|
283
285
|
# config[:enabled] = false
|
284
286
|
# acf.set_distribution_config('E2REJM3VUN5RSI', config) #=> true
|
@@ -289,6 +291,7 @@ module Aws
|
|
289
291
|
unless config[:cnames].blank?
|
290
292
|
config[:cnames].to_a.each { |cname| cnames_str += "\n <CNAME>#{cname}</CNAME>" }
|
291
293
|
end
|
294
|
+
root_ob = config[:default_root_object] ? "<DefaultRootObject>#{config[:default_root_object]}</DefaultRootObject>" : ""
|
292
295
|
# format request's XML body
|
293
296
|
body = <<-EOXML
|
294
297
|
<?xml version="1.0" encoding="UTF-8"?>
|
@@ -298,6 +301,7 @@ module Aws
|
|
298
301
|
#{cnames_str.lstrip}
|
299
302
|
<Comment>#{AcfInterface::escape(config[:comment].to_s)}</Comment>
|
300
303
|
<Enabled>#{config[:enabled]}</Enabled>
|
304
|
+
#{root_ob}
|
301
305
|
</DistributionConfig>
|
302
306
|
EOXML
|
303
307
|
request_hash = generate_request('PUT', "distribution/#{aws_id}/config", body.strip,
|
@@ -97,7 +97,7 @@ module Aws
|
|
97
97
|
# Raises AwsError if any banana happened
|
98
98
|
def request_info(request, parser) #:nodoc:
|
99
99
|
# request_info2(request, parser, :sdb_connection)
|
100
|
-
request_info2(request, parser, @params, :
|
100
|
+
request_info2(request, parser, @params, :sdb_connection, @logger, @@bench)
|
101
101
|
|
102
102
|
end
|
103
103
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 2.3.
|
8
|
+
- 25
|
9
|
+
version: 2.3.25
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Travis Reeder
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-11-04 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|