1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

change doc on copy_object.rb

This commit is contained in:
Danny Garcia 2013-01-08 00:48:58 -05:00
commit b1b0bc7a03

View file

@ -5,6 +5,7 @@ module Fog
require 'fog/aws/parsers/storage/copy_object' require 'fog/aws/parsers/storage/copy_object'
#
# Copy an object from one S3 bucket to another # Copy an object from one S3 bucket to another
# #
# @param source_bucket_name [String] Name of source bucket # @param source_bucket_name [String] Name of source bucket
@ -28,6 +29,7 @@ module Fog
# #
# @see http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectCOPY.html # @see http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectCOPY.html
# #
def copy_object(source_bucket_name, source_object_name, target_bucket_name, target_object_name, options = {}) def copy_object(source_bucket_name, source_object_name, target_bucket_name, target_object_name, options = {})
headers = { 'x-amz-copy-source' => "/#{source_bucket_name}/#{CGI.escape(source_object_name)}" }.merge!(options) headers = { 'x-amz-copy-source' => "/#{source_bucket_name}/#{CGI.escape(source_object_name)}" }.merge!(options)
request({ request({