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

17 commits

Author SHA1 Message Date
Toby Hede
45089ca8ba Add Atmos meta_data request and file_size 2013-10-14 11:58:58 +11:00
Toby Hede
836bbcab73 Delete invalid connection keys before request is made 2013-10-11 16:28:06 +11:00
Toby Hede
71086736fd Grab parse flag before it hits the connection 2013-10-10 16:10:37 +11:00
David Prater
55bf102286 Fix for https urls in atmos. 2013-09-19 10:33:30 -04:00
Brian D. Burns
4ea463eb7b require mime/types in Fog::Storage 2013-08-27 20:43:49 -04:00
Toby Hede
7f13c75447 remove dependency on active_support's present? method 2013-07-26 15:25:49 +10:00
Paul Thornthwaite
acb52cbee9 [atmos] Updates reference to service 2013-01-07 20:53:24 +00:00
Paul Thornthwaite
7961ad6508 [core] Deprecates 'connection' accessor
The 'connection' accessor in collections and models actually refered to
a subclassed instance of Fog::Service which creates confusion in the
code.

References to 'connection' could have meant the service or the
Fog::Connection held within that service.

This deprecates the connection accessor and replaces it with `#service`
as a read only value. When a collection or model is initalised then
service should be passed.

This commit also updates all the changes to @connection made by
providers in model initialisers since these depending on the presence of
the 'connection' key. The key is still accepted by outputs a warning.
2013-01-07 20:53:24 +00:00
Michael Harrison
b6e4d81d7c Changed Atmos::FIle.public_url so checks for existence of the file on storage on every call to the method minimising the potential for a 404 error 2012-10-24 10:53:59 +10:00
Michael Harrison
cbc78a22a8 Changed Atmos::FIle.public_url so returns nil if the file doesn't exist on the cloud storage. This brings the method in line with other storage implementations such as AWS and Rackspace 2012-10-23 13:40:03 +10:00
Michael Harrison
e054b855df Changed Atmos::FIle.public_url so an exception is thrown if the file doesn't exist on the cloud storage 2012-10-22 19:33:59 +10:00
Michael Harrison
be9f885429 Rolled back deletion guard as some may be using the exception raised in their code 2012-10-22 16:28:45 +10:00
Michael Harrison
f714d16e50 Added file existence check before file deletion attempt 2012-10-17 14:53:53 +10:00
Michael Harrison
7c2fb4c6c0 Return nil on public_url if the file isn't present on the cloud storage 2012-10-17 13:40:41 +10:00
Michael Harrison
c9dd0eb5c2 Fix to resolve "objectid is required for this operation" error message when calling public_url 2012-10-17 13:33:42 +10:00
Michael Harrison
ba5b48a679 Fix to resolve "objectid is required for this operation" error message when calling public_url 2012-10-17 13:00:10 +10:00
Timur Alperovich
cc69d10c89 Add generic support for EMC Atmos.
Refactor ninefold to provide generic Atmos support. Add an additional
argument, when compared to ninefold, which is the endpoint. The
endpoint should be a full URL, e.g.
https://storage.provider.com:1337/atmos. The API path and port are
optional. If the port is not specified, it is inferred from the
protocol.
2012-09-04 10:45:39 -07:00