Sha256: 3e873d78be9643db32a965384f55e9db1647a1169efe66ce7bddb25d872735fd

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

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

      class Mock
        def put_bucket(bucketName); end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-aliyun-0.3.1 lib/fog/aliyun/requests/storage/put_bucket.rb