Sha256: f8de75c6b05c8aa20d9d6b4a09b70a8104e05b26789b6f15599f8eb7c42d5b74

Contents?: true

Size: 602 Bytes

Versions: 53

Compression:

Stored size: 602 Bytes

Contents

module Fog
  module Storage
    class Rackspace
      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
          request(
            :expects  => 204,
            :method   => 'HEAD',
            :path     => '',
            :query    => {'format' => 'json'}
          )
        end

      end
    end
  end
end

Version data entries

53 entries across 53 versions & 17 rubygems

Version Path
hpfog-0.0.20 lib/fog/rackspace/requests/storage/head_containers.rb
fog-nirvanix-1.8.2 lib/fog/rackspace/requests/storage/head_containers.rb
fog-nirvanix-1.8.1 lib/fog/rackspace/requests/storage/head_containers.rb
fog-parser-fix-1.6.1 lib/fog/rackspace/requests/storage/head_containers.rb
fog-test-again-1.6.0 lib/fog/rackspace/requests/storage/head_containers.rb
fog-test-me-1.10.0 lib/fog/rackspace/requests/storage/head_containers.rb
fog-parser-fix-1.6.0 lib/fog/rackspace/requests/storage/head_containers.rb
fog-1.10.0 lib/fog/rackspace/requests/storage/head_containers.rb
fog-1.9.0 lib/fog/rackspace/requests/storage/head_containers.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/rackspace/requests/storage/head_containers.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/rackspace/requests/storage/head_containers.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/rackspace/requests/storage/head_containers.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/rackspace/requests/storage/head_containers.rb
fog-sgonyea-1.8.1 lib/fog/rackspace/requests/storage/head_containers.rb
fog-1.8.0 lib/fog/rackspace/requests/storage/head_containers.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/rackspace/requests/storage/head_containers.rb
fog-1.7.0 lib/fog/rackspace/requests/storage/head_containers.rb
fog-1.6.0 lib/fog/rackspace/requests/storage/head_containers.rb
fog-1.5.0 lib/fog/rackspace/requests/storage/head_containers.rb
rackspace-fog-1.4.2 lib/rackspace-fog/rackspace/requests/storage/head_containers.rb