module AWS::S3::ACL::Bucket
Public Instance Methods
acl(reload = false)
click to toggle source
The acl method returns and updates the acl for a given bucket.
# Fetch a bucket bucket = Bucket.find 'marcel' # Add a grant to the bucket's policy bucket.acl.grants << some_grant # Write the changes to the policy bucket.acl(bucket.acl)
# File lib/aws/s3/acl.rb 529 def acl(reload = false) 530 policy = reload.is_a?(ACL::Policy) ? reload : nil 531 expirable_memoize(reload) do 532 self.class.acl(name, policy) if policy 533 self.class.acl(name) 534 end 535 end