Sha256: 2f1c77a9afc4d674dc487425895f3593bc7e6b9dbaf07e1ff538d38a1dd26e87

Contents?: true

Size: 767 Bytes

Versions: 46

Compression:

Stored size: 767 Bytes

Contents

module Fog
  module Rackspace
    module Files
      class Real

        # List number of containers and total bytes stored
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * headers<~Hash>:
        #     * 'X-Account-Container-Count'<~String> - Count of containers
        #     * 'X-Account-Bytes-Used'<~String> - Bytes used
        def head_containers
          response = storage_request(
            :expects  => 204,
            :method   => 'HEAD',
            :path     => '',
            :query    => 'format=json'
          )
          response
        end

      end

      class Mock

        def head_containers
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
fog-0.1.3 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.1.2 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.1.1 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.1.0 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.100 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.99 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.98 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.97 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.96 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.95 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.94 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.93 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.92 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.91 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.90 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.89 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.88 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.87 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.86 lib/fog/rackspace/requests/files/head_containers.rb
fog-0.0.85 lib/fog/rackspace/requests/files/head_containers.rb