lib/fog/brightbox/requests/storage/delete_multiple_objects.rb in fog-brightbox-0.6.1 vs lib/fog/brightbox/requests/storage/delete_multiple_objects.rb in fog-brightbox-0.7.0
- old
+ new
@@ -1,10 +1,9 @@
module Fog
module Storage
class Brightbox
class Real
-
# Deletes multiple objects or containers with a single request.
#
# To delete objects from a single container, +container+ may be provided
# and +object_names+ should be an Array of object names within the container.
#
@@ -48,20 +47,19 @@
object_name = container ? "#{ container }/#{ name }" : name
URI.encode(object_name)
end.join("\n")
response = request({
- :expects => 200,
- :method => 'DELETE',
- :headers => options.merge('Content-Type' => 'text/plain',
- 'Accept' => 'application/json'),
- :body => body,
- :query => { 'bulk-delete' => true }
- }, false)
+ :expects => 200,
+ :method => "DELETE",
+ :headers => options.merge("Content-Type" => "text/plain",
+ "Accept" => "application/json"),
+ :body => body,
+ :query => { "bulk-delete" => true }
+ }, false)
response.body = Fog::JSON.decode(response.body)
response
end
-
end
end
end
end