Sha256: f9a7d102d9674b5bcc335050ef537e26b77973221b6697275b1a92cd9c27a1cd
Contents?: true
Size: 926 Bytes
Versions: 36
Compression:
Stored size: 926 Bytes
Contents
module Fog module AWS module S3 class Real # Change versioning status for an S3 bucket # # ==== Parameters # * bucket_name<~String> - name of bucket to modify # * status<~String> - Status to change to in ['Enabled', 'Suspended'] def put_bucket_versioning(bucket_name, status) data = <<-DATA <VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <Status>#{status}</Status> </VersioningConfiguration> DATA request({ :body => data, :expects => 200, :headers => {}, :host => "#{bucket_name}.#{@host}", :method => 'PUT', :query => {'versioning' => nil} }) end end class Mock def put_bucket_versioning(bucket_name, status) Fog::Mock.not_implemented end end end end end
Version data entries
36 entries across 36 versions & 2 rubygems