s3
s3 copied to clipboard
ACL method not found
The code:
require "s3"
service = S3::Service.new(:access_key_id => "foo",
:secret_access_key => "bar")
bucket = service.buckets.find("my-bucket") # bucket exists
object = bucket.objects.find("my-file.html") # object exists
puts object.request_acl
Results in:
s3.rb:9:in `<main>': undefined method `request_acl' for #<S3::Object:/my-bucket/my-file.html> (NoMethodError)
How do I list an object's permissions? Cheers.
It may not be possible atm. Please create a pull request for that :-).
This should be fixed, no?
Unsure, isn't there any other way of checking ACL?