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:
commit
b1b0bc7a03
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ module Fog
|
|||
|
||||
require 'fog/aws/parsers/storage/copy_object'
|
||||
|
||||
#
|
||||
# Copy an object from one S3 bucket to another
|
||||
#
|
||||
# @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
|
||||
#
|
||||
|
||||
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)
|
||||
request({
|
||||
|
|
Loading…
Add table
Reference in a new issue