-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rackspace|storage] implement get_http_url and get_https_url #2103
Comments
@krames - yeah. We should probably standardize, as further evidenced here: https://github.com/carrierwaveuploader/carrierwave/blob/master/lib/carrierwave/storage/fog.rb#L139 |
@geemus I think your right. |
I did some brief analysis on this. These are all the model level methods to retrieve urls
The only common method among service providers is My suggestion is to adopt the google/aws methods if they are sufficient or introduce a new method/hijack an old method that takes a hash allow providers to pass along extra options. What are your thoughts? |
Good idea to standardize. I will put in these aliases as well in the HP provider. |
@rupakg Awesome! |
@krames sounds reasonable to me also. If you start down that path and run into any issues or have questions don't hesitate to bug me for assistance though. Thanks! |
I haven't had a chance to start on this yet. If I get to it before you -s On Wed, Sep 4, 2013 at 7:46 AM, Wesley Beary notifications@github.comwrote:
|
@samsonjs Thanks! I ended up switching gears too. Hopefully I will get to pick this up again sometime soon. |
this would great to get in ... I ran into this today trying to get a full listing of all the ssl URL of each container. |
@rupakg I can add aliases for the hp provider so we can use the hp and openstack temp url methods in a common way. What do you think about this? |
@julweber Yeah that will work. I can review after you commit. |
ok. i will add a pull request tomorrow. |
Would you prefer to have an alias for File#url pointing to the old method or should i implement the method in File#url and add an alias with the old method name to keep it backwards compatible? |
Keeping it backwards compatible is preferable, I don't feel too strongly about how you go about doing that though. |
my preferred way would be to implement the methods according to the aws and openstack provider interface and add aliases for the old method names |
@julweber - cool, definitely sounds like a good plan. |
Done :) |
fog#2103 for more information.
In the future we might want to explore a more intuitive future proof solution to this problem and deprecating all of the cruft. |
Thanks! On Wed, Oct 30, 2013 at 8:36 AM, Kyle Rames notifications@github.comwrote:
|
Paperclip currently uses
get_http_url
andget_https_url
to retrieve temporary urls. These methods should be implemented for the Rackspace storage provider.Here is the relevant line of source from paperclip
https://github.com/thoughtbot/paperclip/blob/master/lib/paperclip/storage/fog.rb#L143
The text was updated successfully, but these errors were encountered: