lib/fog/aws/requests/storage/put_bucket_website.rb in fog-maestrodev-1.8.0.20130114204828 vs lib/fog/aws/requests/storage/put_bucket_website.rb in fog-maestrodev-1.14.0.20130806165225
- old
+ new
@@ -3,18 +3,16 @@
class AWS
class Real
# Change website configuration for an S3 bucket
#
- # ==== Parameters
- # * bucket_name<~String> - name of bucket to modify
- # * suffix<~String> - suffix to append to requests for the bucket
- # * options<~Hash>
- # * key<~String> - key to use for 4XX class errors
+ # @param bucket_name [String] name of bucket to modify
+ # @param suffix [String] suffix to append to requests for the bucket
+ # @param options [Hash]
+ # @option options key [String] key to use for 4XX class errors
#
- # ==== See Also
- # http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTwebsite.html
+ # @see http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTwebsite.html
def put_bucket_website(bucket_name, suffix, options = {})
data =
<<-DATA
<WebsiteConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
@@ -35,10 +33,10 @@
data << '</WebsiteConfiguration>'
request({
:body => data,
:expects => 200,
:headers => {},
- :host => "#{bucket_name}.#{@host}",
+ :bucket_name => bucket_name,
:method => 'PUT',
:query => {'website' => nil}
})
end