Sha256: 6d1f50e29eaee11487823d8dc5326bd17ae7df5dfd657fcc0e0bedd017f1df09

Contents?: true

Size: 572 Bytes

Versions: 14

Compression:

Stored size: 572 Bytes

Contents

module Fog
  module Rackspace
    class Storage
      class Real

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

      end

      class Mock

        def delete_container(name)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-0.3.13 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.12 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.11 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.10 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.9 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.8 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.7 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.6 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.5 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.4 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.3 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.2 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.1 lib/fog/rackspace/requests/storage/delete_container.rb
fog-0.3.0 lib/fog/rackspace/requests/storage/delete_container.rb