* Sets the account-wide Temp URL Key
* The key is used to sign any expiring URLs to otherwise private objects
* Once the key has been set, you need to pass it in when creating a new
Rackspace Storage object like so:
storage = Fog::Storage.new(:rackspace_username => 'username',
:rackspace_api_key => 'api_key',
:rackspace_temp_url_key => 'secret-key',
:provider => 'Rackspace')
* After this has been set, create an expiring URL like so:
storage.get_object_https_url("container","object_key", Time.now + 60)
* returns a signed, expiring URL for the requested object
* useful for providing temporary public access to an otherwise private
object
* same function as the request of the same name for AWS Storage
* Create an expiring URL like so:
storage = Fog::Storage.new(:rackspace_username => 'username',
:rackspace_api_key => 'api_key',
:rackspace_temp_url_key => 'secret-key',
:provider => 'Rackspace')
storage.get_object_https_url("container","object_key", Time.now + 60)
URI.escape doesn't encode question marks properly, CGI.escape doesn't encode
spaces properly. So we create an escape class method for Fog::Rackspace that
does the CGI.escape methods, only encoding spaces as %20.
This makes things work properly with Rackspace Cloud Files.