Sha256: 60349a947720de67afbc6ae0e23e972f39bef0fecbadc6071af1230f547b3d4f
Contents?: true
Size: 919 Bytes
Versions: 2
Compression:
Stored size: 919 Bytes
Contents
module Fog module Storage class Aliyun class Real # Delete an existing container # # ==== Parameters # * container<~String> - Name of container to delete # * options # def delete_container(container, options={}) bucket = options[:bucket] bucket ||= @aliyun_oss_bucket location = get_bucket_location(bucket) endpoint = "http://"+location+".aliyuncs.com" object = container+'/' resource = bucket+'/'+object request( :expects => 204, :method => 'DELETE', :path => object, :bucket => bucket, :resource => resource, :endpoint => endpoint ) end end class Mock def delete_container(container, 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/delete_container.rb |
fog-aliyun-0.0.7 | lib/fog/aliyun/requests/storage/delete_container.rb |