From f026d3533e52daac8829389071de532223120438 Mon Sep 17 00:00:00 2001 From: Mateusz Juraszek Date: Fri, 9 Dec 2011 12:42:53 +0100 Subject: [PATCH] add options hash to Fog::Storage::AWS::File#url and Fog::Storage::AWS::Files#get_https_url which use get_object_https_url method --- lib/fog/aws/models/storage/file.rb | 4 ++-- lib/fog/aws/models/storage/files.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fog/aws/models/storage/file.rb b/lib/fog/aws/models/storage/file.rb index 4ba3ff5cf..90c5a27d0 100644 --- a/lib/fog/aws/models/storage/file.rb +++ b/lib/fog/aws/models/storage/file.rb @@ -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 diff --git a/lib/fog/aws/models/storage/files.rb b/lib/fog/aws/models/storage/files.rb index b96ce8328..a133848a2 100644 --- a/lib/fog/aws/models/storage/files.rb +++ b/lib/fog/aws/models/storage/files.rb @@ -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 = {})