Sha256: a536889bf36fd2644020fc8757e714e3521526129f72000afc2eb07c8bc0cee1
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
module Fog module Storage class Dtdream class Real def list_buckets(options={}) prefix = options[:prefix] marker = options[:marker] maxKeys = options[:maxKeys] path = "" if prefix path+="?prefix="+prefix if marker path+="&marker="+marker end if maxKeys path+="&max-keys="+maxKeys end elsif marker path+="?marker="+marker if maxKeys path+="&max-keys="+maxKeys end elsif maxKeys path+="?max-keys="+maxKeys end ret = request( :expects => [200, 203], :method => 'GET', :path => path ) xml = ret.data[:body] result = XmlSimple.xml_in(xml)["Buckets"][0] end end class Mock def list_buckets(options={}) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-dtdream-0.0.8 | lib/fog/dtdream/requests/storage/list_buckets.rb |
fog-dtdream-0.0.7 | lib/fog/dtdream/requests/storage/list_buckets.rb |