Class: Fog::Google::Storage::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/google/requests/storage/get_bucket_acl.rb

Instance Method Summary collapse

Instance Method Details

#get_bucket_acl(bucket_name) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
# File 'lib/fog/google/requests/storage/get_bucket_acl.rb', line 48

def get_bucket_acl(bucket_name)
  response = Excon::Response.new
  if acl = self.data[:acls][:bucket][bucket_name]
    response.status = 200
    response.body = acl
  else
    response.status = 404
    raise(Excon::Errors.status_error({:expects => 200}, response))
  end
  response
end