Method: Jets::TmpLoader#download
- Defined in:
- lib/jets/tmp_loader.rb
#download(key, dest) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/jets/tmp_loader.rb', line 33 def download(key, dest) # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#get_object-instance_method # stream object directly to disk s3.get_object(response_target: dest, bucket: @s3_bucket, key: key) end |