Sha256: ca19e559507cc8816195bf9daa33819c88ae373d163a444bbe173050c7c5f541

Contents?: true

Size: 1.05 KB

Versions: 26

Compression:

Stored size: 1.05 KB

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

      class Mock # :nodoc:all

        def abort_multipart_upload(bucket_name, object_name, upload_id)
          Fog::Mock.not_implemented
        end

      end # Mock
    end # Storage
  end # AWS
end # Fog

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
fog-0.5.1 lib/fog/storage/requests/aws/abort_multipart_upload.rb
fog-0.5.0 lib/fog/storage/requests/aws/abort_multipart_upload.rb
phpfog-fog-0.4.1.3 lib/fog/storage/requests/aws/abort_multipart_upload.rb
phpfog-fog-0.4.1.2 lib/fog/storage/requests/aws/abort_multipart_upload.rb
phpfog-fog-0.4.1.1 lib/fog/storage/requests/aws/abort_multipart_upload.rb
phpfog-fog-0.4.1 lib/fog/storage/requests/aws/abort_multipart_upload.rb
fog-0.4.1 lib/fog/storage/requests/aws/abort_multipart_upload.rb
fog-0.4.0 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-0.3.34 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-0.3.33 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-0.3.32 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-0.3.31 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-0.3.30 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-0.3.29 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-0.3.28 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-0.3.27 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-0.3.26 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-0.3.25 lib/fog/aws/requests/storage/abort_multipart_upload.rb
fog-0.3.24 lib/fog/aws/requests/storage/abort_multipart_upload.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/aws/requests/storage/abort_multipart_upload.rb