Sha256: 75a95b4328b581e613808f84b1b20ac770ff76104e98315213839f344f9b07c4

Contents?: true

Size: 884 Bytes

Versions: 10

Compression:

Stored size: 884 Bytes

Contents

module Fog
  module Storage
    class AWS
      class Real
        # 
        # Abort a multipart upload
        #
        # @param [String] bucket_name Name of bucket to abort multipart upload on
        # @param [String] object_name Name of object to abort multipart upload on
        # @param [String] upload_id Id of upload to add part to
        #
        # @see 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

10 entries across 10 versions & 5 rubygems

Version Path
hpfog-0.0.20 lib/fog/aws/requests/storage/abort_multipart_upload.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/requests/storage/abort_multipart_upload.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-1.10.1 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-test-me-1.10.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-1.10.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-1.9.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/aws/requests/storage/abort_multipart_upload.rb