Skip to content
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

Add :endpoint to the options hash for Local Storage #2

Merged
merged 2 commits into from
Jan 14, 2013
Merged

Add :endpoint to the options hash for Local Storage #2

merged 2 commits into from
Jan 14, 2013

Conversation

novemberkilo
Copy link
Contributor

If endpoint is nil, files loaded to Local Storage
have a public_url of nil. Specifying a value for :endpoint
in the options hash fixes this.

Also please see my comment on

fog/fog@61ff93a

Seeing this in the documentation would have saved me a couple of hours.

Not sure the pull request is appropriate - just thought it would make my suggested change very clear.

Thanks!

If endpoint is nil, files loaded to Local Storage 
have a public_url of nil. Specifying a value for :endpoint
in the options hash fixes this.
@geemus
Copy link
Member

geemus commented Jan 14, 2013

@novemberkilo - cool, could you also add some additional text explaining how the value ends up getting used? Also if it explained that this was optional I think that might be helpful to avoid any additional confusion. Thanks!

@admtnnr
Copy link

admtnnr commented Jan 14, 2013

When I added support for public_url to local storage I thought of endpoint as being the root URL that gets joined with the path to the actual file. So if you stored your files in ~/.fog (local root) and were accessible as http://example.com/files/ then a file located at ~/.fog/pictures/summer/1.jpg it would be accessible as http://example.com/files/pictures/summer/1.jpg. Endpoint may have been the wrong name, maybe something like remote_root?

@novemberkilo
Copy link
Contributor Author

@geemus @adamtanner have added to the text as suggested.

@geemus
Copy link
Member

geemus commented Jan 14, 2013

@novemberkilo - awesome, thanks!

@adamtanner - interesting. I think it could make sense to change to something like remote_root, which is likely to be a bit clearer as you said. We should make sure if/when we do to still support endpoint though, at least for the time being, but probably with a deprecation warning. Let me know if you decide to tackle that and have any questions or anything.

geemus added a commit that referenced this pull request Jan 14, 2013
Add :endpoint to the options hash for Local Storage
@geemus geemus merged commit 58a5d3d into fog:master Jan 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants