Sha256: 843f3b97c4a50632b7e1a496b923e1e92286db9bf18aea51733f690dd79a5cce

Contents?: true

Size: 695 Bytes

Versions: 13

Compression:

Stored size: 695 Bytes

Contents

unless Fog.mocking?

  module Fog
    module Rackspace
      class Files

        # Delete an existing container
        #
        # ==== Parameters
        # * container<~String> - Name of container to delete
        # * object<~String> - Name of object to delete
        #
        def delete_object(container, object)
          response = storage_request(
            :expects  => 204,
            :method   => 'DELETE',
            :path     => "#{CGI.escape(container)}/#{CGI.escape(object)}"
          )
          response
        end

      end
    end
  end

else

  module Fog
    module Rackspace
      class Servers

        def delete_object
        end

      end
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fog-0.0.42 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.41 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.40 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.39 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.38 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.37 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.36 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.35 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.34 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.33 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.32 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.31 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.30 lib/fog/rackspace/requests/files/delete_object.rb