64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# File 'lib/fog/aws/requests/storage/get_object_acl.rb', line 64
def get_object_acl(bucket_name, object_name, options = {})
response = Excon::Response.new
if acl = self.data[:acls][:object][bucket_name] && self.data[:acls][:object][bucket_name][object_name]
response.status = 200
if acl.is_a?(String)
response.body = Fog::Storage::AWS.acl_to_hash(acl)
else
response.body = acl
end
else
response.status = 404
raise(Excon::Errors.status_error({:expects => 200}, response))
end
response
end
|