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

19 commits

Author SHA1 Message Date
Jonas Pfenniger
f6d361b2e2 AWS | storage: big refactor
Logics have been centralised:

* region to hostname
* url generation
* signature
* chaning scheme also changes the port

During the process a couple of inconsistencies have also
been fixed.

Known limitations:

When using the @endpoint with a custom port you need to specify the port
when using get_object_http_url or get_object_https_url.

When using bucket names that contain dots outside of us-east-1 make sure to
access it with the same region in your AWS::Storage.
2013-04-16 23:30:35 +01:00
Jonas Pfenniger
f36a3065a9 AWS | storage: fixes ignored location with new buckets
When creating a new directory the location wasn't forwarded properly.

Something like the following is now working as expected (see limitation below):

    Fog::Storage[:aws].directories.create(key: 'bucket', location: 'us-west-1')

It also changes the following behaviour: when no location is specified new
buckets are explicitly created in the same region as the service connection.

Known limitations:

Fog::AWS::Directory instance don't use their location to connect to S3.

If you're using an AWS::Storage with a region different than us-east-1 you
can only create buckets in the same region.
2013-04-16 23:28:04 +01:00
Jonas Pfenniger
62f07402b3 AWS | storage: make directory.persisted? tell the truth
directory.persisted? was relying on the directory having a key which is almost
always true and not related to storage anyways.
2013-04-16 23:28:04 +01:00
Nils Landt
ba7689302c Fix S3 directory location infinite loop 2013-04-02 06:33:16 +02:00
Paul Thornthwaite
e4dd7c85b8 [aws|storage] Updates reference to service 2013-01-07 20:53:27 +00:00
Stephan Kaag
a28ecc4398 Introduce AWS::COMPLIANT_BUCKET_NAMES constant 2012-12-05 21:12:25 +01:00
geemus
df6aae8760 [storage|aws] fix location stuff to allow creating new buckets properly 2012-05-28 15:36:54 -05:00
geemus
835255df96 [aws|storage] fix flipped logic on valid acl check
closes #889
2012-05-03 17:42:52 -05:00
James Herdman
bc7ff75a4f Refactor AWS Directory
* Silence warnings regarding uninitialized instance variable @location
* Tidy up memoization
* Extensive use of getters instead of instance variables

Fixes #884
2012-05-02 15:26:22 -04:00
Edward Muller
df90ed406f All directories.create on us-east-1 2012-04-02 18:15:34 -07:00
geemus
80ca32bfdd use path style access for https public_urls that include . to avoid certificate issues
closes #743
2012-02-17 17:07:18 -06:00
Kevin Menard
a5a3f8fdf4 [aws|storage|test] Added model tests for versioning Directory and File models. 2012-01-26 18:00:29 -05:00
Kevin Menard
2d084c7844 [aws|storage] Added ability to control bucket versioning from Directory model. 2012-01-26 17:56:40 -05:00
geemus
9b8240bfba [storage|aws] move aws storage back with other aws stuff (namespacing should probably be recorrected as well) 2011-08-24 13:50:42 -05:00
geemus
ac480ad928 [storage] consolidate 2011-01-07 15:34:20 -08:00
geemus
93b8d32845 [storage] add public= and public_url for directory, public_url for file 2010-11-05 15:31:44 -07:00
geemus
85c0c2fbf1 [aws&google|storage] cleanup/fixes for bucket acl 2010-10-29 16:38:17 -07:00
geemus
619f7d430f fix paths for core requires 2010-10-04 14:02:08 -07:00
geemus
58577e17bf [aws] rename ec2/s3 to compute/storage 2010-09-08 14:40:57 -07:00
Renamed from lib/fog/aws/models/s3/directory.rb (Browse further)