2010-03-19 18:29:42 -07:00
|
|
|
module Fog
|
2011-06-15 14:26:43 -07:00
|
|
|
module Storage
|
|
|
|
class Rackspace
|
2010-03-19 18:29:42 -07:00
|
|
|
class Real
|
2009-10-12 09:25:47 -07:00
|
|
|
|
|
|
|
# List number of containers and total bytes stored
|
|
|
|
#
|
|
|
|
# ==== Returns
|
2009-11-02 18:48:49 -08:00
|
|
|
# * response<~Excon::Response>:
|
2009-10-12 09:25:47 -07:00
|
|
|
# * headers<~Hash>:
|
|
|
|
# * 'X-Account-Container-Count'<~String> - Count of containers
|
|
|
|
# * 'X-Account-Bytes-Used'<~String> - Bytes used
|
|
|
|
def head_containers
|
2011-06-15 14:26:43 -07:00
|
|
|
request(
|
2009-10-12 09:25:47 -07:00
|
|
|
:expects => 204,
|
|
|
|
:method => 'HEAD',
|
|
|
|
:path => '',
|
2010-06-05 14:19:39 -07:00
|
|
|
:query => {'format' => 'json'}
|
2009-10-12 09:25:47 -07:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|