Skip to content

Commit

Permalink
Update copy by generation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
blowmage authored and quartzmo committed Oct 8, 2015
1 parent 577a5b9 commit 7b10c6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/gcloud/storage/file.rb
Expand Up @@ -229,6 +229,9 @@ def download path, options = {}
# path to copy the file to in the given bucket. (+String+)
# +options+::
# An optional Hash for controlling additional behavior. (+Hash+)
# <code>options[:generation]</code>::
# Select a specific revision of the file to copy. The default is the
# latest version. (+Integer+)
# <code>options[:acl]</code>::
# A predefined set of access controls to apply to new file.
# (+String+)
Expand Down Expand Up @@ -282,6 +285,7 @@ def download path, options = {}
#
# file.copy "copy/of/previous/generation/file.ext",
# generation: 123456
#
def copy dest_bucket_or_path, dest_path = nil, options = {}
ensure_connection!
dest_bucket, dest_path, options = fix_copy_args dest_bucket_or_path,
Expand Down

0 comments on commit 7b10c6c

Please sign in to comment.