1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

add options hash to Fog::Storage::AWS::File#url and Fog::Storage::AWS::Files#get_https_url which use get_object_https_url method

This commit is contained in:
Mateusz Juraszek 2011-12-09 12:42:53 +01:00
parent 47983731ee
commit f026d3533e
2 changed files with 4 additions and 4 deletions

View file

@ -123,9 +123,9 @@ module Fog
true
end
def url(expires)
def url(expires, options = {})
requires :key
collection.get_https_url(key, expires)
collection.get_https_url(key, expires, options)
end
private

View file

@ -83,9 +83,9 @@ module Fog
connection.get_object_http_url(directory.key, key, expires)
end
def get_https_url(key, expires)
def get_https_url(key, expires, options = {})
requires :directory
connection.get_object_https_url(directory.key, key, expires)
connection.get_object_https_url(directory.key, key, expires, options)
end
def head(key, options = {})