Sha256: 79b79e86b541586186208326b4f77b70a957753aa14f7a40dbed8f2d1b9bc2c6
Contents?: true
Size: 772 Bytes
Versions: 12
Compression:
Stored size: 772 Bytes
Contents
# frozen_string_literal: true module Fog module Storage class Aliyun class Real # Create a new container # # ==== Parameters # * name<~String> - Name for container # def put_container(name, options = {}) bucket = options[:bucket] bucket ||= @aliyun_oss_bucket location = get_bucket_location(bucket) endpoint = 'http://' + location + '.aliyuncs.com' path = name + '/' resource = bucket + '/' + name + '/' request( expects: [200, 203], method: 'PUT', path: path, bucket: bucket, resource: resource, endpoint: endpoint ) end end end end end
Version data entries
12 entries across 10 versions & 2 rubygems