Sha256: f8a033124892c28ed5c076e4f0561456cc51db7b1fd251c5cdc3696811336137

Contents?: true

Size: 360 Bytes

Versions: 7

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

module Fog
  module Aliyun
    class Storage
      class Real
        def put_bucket(bucketName)
          resource = bucketName + '/'
          request(
            expects: [200, 203],
            method: 'PUT',
            resource: resource,
            bucket: bucketName
          )
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-aliyun-0.3.18 lib/fog/aliyun/requests/storage/put_bucket.rb
fog-aliyun-0.3.17 lib/fog/aliyun/requests/storage/put_bucket.rb
fog-aliyun-0.3.16 lib/fog/aliyun/requests/storage/put_bucket.rb
fog-aliyun-0.3.15 lib/fog/aliyun/requests/storage/put_bucket.rb
fog-aliyun-0.3.13 lib/fog/aliyun/requests/storage/put_bucket.rb
fog-aliyun-0.3.12 lib/fog/aliyun/requests/storage/put_bucket.rb
fog-aliyun-0.3.11 lib/fog/aliyun/requests/storage/put_bucket.rb