Skip to content

Instantly share code, notes, and snippets.

@nagarajasn
nagarajasn / bucket_sync_service.rb
Last active September 6, 2015 21:46 — forked from bantic/bucket_sync_service.rb
ruby class to copy from one aws s3 bucket to another
require 'aws/s3' # gem name is 'aws-sdk'
class BucketSyncService
attr_reader :from_bucket, :to_bucket, :logger
attr_accessor :debug
DEFAULT_ACL = :public_read
# from_credentials and to_credentials are both hashes with these keys:
# * :aws_access_key_id