Skip to content

Instantly share code, notes, and snippets.

@jpemberthy
Last active December 16, 2015 22:20
Show Gist options
  • Select an option

  • Save jpemberthy/5506423 to your computer and use it in GitHub Desktop.

Select an option

Save jpemberthy/5506423 to your computer and use it in GitHub Desktop.
>> s3 = AWS::S3.new.buckets[UPLOADER_BUCKET].objects['images/1/large.jpg']
=> AWS::S3::S3Object:whi-dev-transientimages1largejpg
>> s3.copy_to('images/1/fake_large.jpg', { :acl =>:public_read })
=> AWS::S3::S3Object:whi-dev-transientimages1fake_largejpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment