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
fog-1.4.0 lib/fog/rackspace/requests/storage/head_containers.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/storage/head_containers.rb
michiels-fog-1.3.1 lib/fog/rackspace/requests/storage/head_containers.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/rackspace/requests/storage/head_containers.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/storage/head_containers.rb
fog-1.3.1 lib/fog/rackspace/requests/storage/head_containers.rb
fog-1.3.0 lib/fog/rackspace/requests/storage/head_containers.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/storage/head_containers.rb
fog-1.2.0 lib/fog/rackspace/requests/storage/head_containers.rb
ktheory-fog-1.1.2 lib/fog/rackspace/requests/storage/head_containers.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/storage/head_containers.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/storage/head_containers.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/storage/head_containers.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/storage/head_containers.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/storage/head_containers.rb
fog-1.1.2 lib/fog/rackspace/requests/storage/head_containers.rb
fog_tractical-1.1.4 lib/fog/rackspace/requests/storage/head_containers.rb
fog_tractical-1.1.3 lib/fog/rackspace/requests/storage/head_containers.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/storage/head_containers.rb
fog-1.1.1 lib/fog/rackspace/requests/storage/head_containers.rb