Sha256: b54e0d350029f1306c08d82b45340deb2cd4df3bf4eba793833307b3dfabd976
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
module Fog module Storage class Aliyun 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-aliyun-0.1.0 | lib/fog/aliyun/requests/storage/list_buckets.rb |
fog-aliyun-0.0.7 | lib/fog/aliyun/requests/storage/list_buckets.rb |