Skip to content

Instantly share code, notes, and snippets.

@Meekohi
Created July 19, 2012 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Meekohi/3144049 to your computer and use it in GitHub Desktop.
Save Meekohi/3144049 to your computer and use it in GitHub Desktop.
Set amazon ACL on a folder
files = @s3.list_bucket Rails.application.settings[ :s3_bucket ], {:prefix => short_id}
files.each do |key|
s3.put_acl Rails.application.settings[ :s3_bucket ], key, nil, {'x-amz-acl' => 'public-read'}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment