class S3StreamingMultipartUploader
Constants
- MIN_PART_SIZE
Public Class Methods
new(s3_client, options = {})
click to toggle source
# File lib/s3_streaming_multipart_uploader.rb, line 5 def initialize(s3_client, options = {}) @min_part_size = options[:min_part_size] || MIN_PART_SIZE @s3_client = s3_client end
Public Instance Methods
stream(bucket, key, enumerator)
click to toggle source
# File lib/s3_streaming_multipart_uploader.rb, line 10 def stream(bucket, key, enumerator) @uploader = Uploader.new(@s3_client, bucket, key, enumerator, @min_part_size) @uploader.stream end