Module: AwsExtensions::S3::BucketAcl
- Defined in:
- lib/aws_extensions/s3/BucketAcl.rb
Instance Method Summary collapse
-
#to_cumulus ⇒ Object
Public: Turn the grants in the Aws::S3::BucketAcl into an array of Cumulus::S3::Grant so we can use them.
Instance Method Details
#to_cumulus ⇒ Object
Public: Turn the grants in the Aws::S3::BucketAcl into an array of Cumulus::S3::Grant so we can use them.
Returns an array of Grants
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/aws_extensions/s3/BucketAcl.rb', line 10 def to_cumulus grants_hash = {} grants.each do |grant| cumulus = Cumulus::S3::GrantConfig.new cumulus.populate!(grant) if grants_hash.include? cumulus.name grants_hash[cumulus.name].(cumulus.) else grants_hash[cumulus.name] = cumulus end end grants_hash end |