Retrieve host info in Rake task ?

15 views
Skip to first unread message

David Unric

unread,
Nov 17, 2013, 1:54:51 PM11/17/13
to rubyonra...@googlegroups.com
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/.
Reply all
Reply to author
Forward
0 new messages