Method: S3::Bucket#save_acl

Defined in:
lib/s3/bucket.rb

#save_acl(options = {}) ⇒ Object



129
130
131
132
133
134
135
# File 'lib/s3/bucket.rb', line 129

def save_acl(options = {})
  headers = {}
  headers[:content_length] = 0
  headers[:x_amz_acl] = options[:acl] || acl || "private"

  bucket_request(:put, :headers => headers, :path => name)
end