Sha256: 5f110fda8307eb4cca689b35ac0b9be4033fbecef5c8ee736d029aab3bf60886
Contents?: true
Size: 920 Bytes
Versions: 5
Compression:
Stored size: 920 Bytes
Contents
module Fog module Storage class Dtdream 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
5 entries across 5 versions & 1 rubygems