* 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)
Should facilitate the following:
require 'fog/aws'
require 'fog/compute'
require 'fog/aws/compute'
I think once you `require 'rubygems'` those should work.
further cleanup should reduce common requires (ie nokogiri)
- Added google_storage_* keys
- Fixed indentations.
- Factored out requires and recognizes method implementation (now relies on the requires and recognizes clause from the NamedParameters module)
- Added dependency to named-parameters gem.
- Added recognizes declaration to classes for all supported services to enforce parameter name checks -
- passing an unrecognized key when instantiating a service object will now cause an ArgumentError to be raised.
- Added NOTE
- comment added
- check/filter-out keys from credentials that are not required by the class being instantiated
- [local|storage] properly write out file contents
- Added google_storage_* keys
- Fixed indentations.
- added put_object_acl request (ref: https://github.com/geemus/fog/issues#issue/74)
- Release 0.3.24
- remove tracker reference from README
- issues is now the goto for bugs/todo
- notify and gracefully skip credential-less testsa
- [rackspace|storage] fixes for directory/files
- [local|storage] CGI.escape file names
- Release 0.3.25
- updated deps; recognized_parameters -> declared_parameters; restored options filtering if Fog.bin
- Added requires/recognizes to Fog::Terremark::Ecloud
- Updted to use latest named-parameters gem.
- Filter out unwanted parameters when Fog.bin
- Updated to latest named-parameters gem
- commented out unnecessary code
- fix missing "volume" parameter error when setting Fog::AWS::Volume#server to nil (in order to detach it)
- documentation update for key_pairs and helper
- [aws|compute] commented/documented flavors/volumes
- Fixes for issue 38 and 39
Closes#96