[Rails] Retrieve host info in Rake task ?
Hi,
I'm writing a rake task for a standard Rails 3.x project.
I'd like to retrieve a info from rails about project's hostname and if
possible also about protocol (http, https) and default port.
I can access these values from a controller f.E. but what about rake
task ?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/56154faa915fed114c83b8f4f8cf98df%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home