Sha256: 69afb90299ad57c0b1a1524579319cbd3c18fba1aa173abeaba1c6662a476490

Contents?: true

Size: 910 Bytes

Versions: 46

Compression:

Stored size: 910 Bytes

Contents

module Fog
  module Storage
    class AWS
      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

46 entries across 46 versions & 15 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-nirvanix-1.8.1 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-parser-fix-1.6.1 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-test-again-1.6.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-parser-fix-1.6.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-sgonyea-1.8.1 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-1.8.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-1.7.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-1.6.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-1.5.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb
rackspace-fog-1.4.2 lib/rackspace-fog/aws/requests/storage/abort_multipart_upload.rb
fog-1.4.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/abort_multipart_upload.rb
michiels-fog-1.3.1 lib/fog/aws/requests/storage/abort_multipart_upload.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/requests/storage/abort_multipart_upload.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-1.3.1 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-1.3.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb