Hi,
I have written an rake task where I need to access “Hostname” . I need this feature because I will be testing my application using the rake task both locally and on live server .
I found code in another language which does the same
hostname = os.environ.get('HOSTNAME')
puts "hostname =" + hostname
Is there anything similar to the above code in rails which I can use in my application .
Thanks, Madhu Nallamani