Sha256: 6ee846386eceb38b5a7bb291fb86350cdac515869b119fb3685e37bde07014a6

Contents?: true

Size: 910 Bytes

Versions: 9

Compression:

Stored size: 910 Bytes

Contents

module Fog
  module AWS
    class Storage
      class Real

        # Abort a multipart upload
        #
        # ==== Parameters
        # * bucket_name<~String> - Name of bucket to abort multipart upload on
        # * object_name<~String> - Name of object to abort multipart upload on
        # * upload_id<~String> - Id of upload to add part to
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadAbort.html
        #
        def abort_multipart_upload(bucket_name, object_name, upload_id)
          request({
            :expects    => 204,
            :headers    => {},
            :host       => "#{bucket_name}.#{@host}",
            :method     => 'DELETE',
            :path       => CGI.escape(object_name),
            :query      => {'uploadId' => upload_id}
          })
        end

      end # Real
    end # Storage
  end # AWS
end # Fog

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/storage/requests/aws/abort_multipart_upload.rb
fog-0.8.1 lib/fog/storage/requests/aws/abort_multipart_upload.rb
fog-0.8.0 lib/fog/storage/requests/aws/abort_multipart_upload.rb
fog-0.7.2 lib/fog/storage/requests/aws/abort_multipart_upload.rb
fog-0.7.1 lib/fog/storage/requests/aws/abort_multipart_upload.rb
fog-0.7.0 lib/fog/storage/requests/aws/abort_multipart_upload.rb
fog-0.6.0 lib/fog/storage/requests/aws/abort_multipart_upload.rb
fog-0.5.3 lib/fog/storage/requests/aws/abort_multipart_upload.rb
fog-0.5.2 lib/fog/storage/requests/aws/abort_multipart_upload.rb