| Module | AWS::S3::BitTorrent::ClassMethods |
| In: |
lib/aws/s3/bittorrent.rb
|
Grants access to the object with the given key to be accessible as a torrent.
# File lib/aws/s3/bittorrent.rb, line 38
38: def grant_torrent_access_to(key, bucket = nil)
39: policy = acl(key, bucket)
40: return true if policy.grants.include?(:public_read)
41: policy.grants << ACL::Grant.grant(:public_read)
42: acl(key, bucket, policy)
43: end