Sha256: ae24134bb441e2f8e45a7b8eadfe0876b360d5fd0746a3384f01becd0c1e56ec
Contents?: true
Size: 625 Bytes
Versions: 12
Compression:
Stored size: 625 Bytes
Contents
# frozen_string_literal: true module Fog module Storage class Aliyun class Real # Delete an existing bucket # # ==== Parameters # * bucket<~String> - Name of bucket to delete # def delete_bucket(bucket) location = get_bucket_location(bucket) endpoint = 'http://' + location + '.aliyuncs.com' resource = bucket + '/' request( expects: 204, method: 'DELETE', bucket: bucket, resource: resource, endpoint: endpoint ) end end end end end
Version data entries
12 entries across 10 versions & 2 rubygems