lib/fog/google/requests/storage/get_object_acl.rb in fog-1.22.0 vs lib/fog/google/requests/storage/get_object_acl.rb in fog-1.22.1
- old
+ new
@@ -1,10 +1,9 @@
module Fog
module Storage
class Google
class Real
-
require 'fog/google/parsers/storage/access_control_list'
# Get access control list for an Google Storage object
#
# ==== Parameters
@@ -49,15 +48,13 @@
:parser => Fog::Parsers::Storage::Google::AccessControlList.new,
:path => CGI.escape(object_name),
:query => query
})
end
-
end
class Mock
-
def get_object_acl(bucket_name, object_name)
response = Excon::Response.new
if acl = self.data[:acls][:object][bucket_name] && self.data[:acls][:object][bucket_name][object_name]
response.status = 200
response.body = acl
@@ -65,10 +62,9 @@
response.status = 404
raise(Excon::Errors.status_error({:expects => 200}, response))
end
response
end
-
end
end
end
end