Commit 4046524d authored by Kamil Trzciński's avatar Kamil Trzciński

Revert "Patch Fog/Google/AWS to add additional delete_url method"

This reverts commit 8427003dc799c7f634bdafca48100d9407562523.
parent d5043424
require 'fog/aws'
# Hot patching the fog-aws to enable
# https://github.com/fog/fog-google/pull/306
#
# To be removed once the new version of fog-google is released
module Fog
module Storage
class AWS
class Real
def delete_object_url(bucket_name, object_name, expires, headers = {}, options = {})
unless bucket_name
raise ArgumentError.new('bucket_name is required')
end
unless object_name
raise ArgumentError.new('object_name is required')
end
signed_url(options.merge({
bucket_name: bucket_name,
object_name: object_name,
method: 'DELETE',
headers: headers
}), expires)
end
end
end
end
end
require 'fog/google'
# Hot patching the fog-google to enable
# https://github.com/fog/fog-aws/pull/431
#
# To be removed once the new version of fog-aws is released
module Fog
module Storage
class GoogleXML
class Real
def delete_object_url(bucket_name, object_name, expires)
raise ArgumentError.new("bucket_name is required") unless bucket_name
raise ArgumentError.new("object_name is required") unless object_name
https_url({
headers: {},
host: @host,
method: "DELETE",
path: "#{bucket_name}/#{object_name}"
}, expires)
end
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment