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:
parent
47983731ee
commit
f026d3533e
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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 = {})
|
||||
|
|
Loading…
Reference in a new issue