Does anyone know how I can get a system variable like JAVA_HOME or JBOSS_HOME from within Rails/Ruby?
For anyone still interested, I found that I can use ENV[‘JBOSS_HOME’] on JRuby; haven’t checked if it works on C Ruby, but I would guess it does.
Does anyone know how I can get a system variable like JAVA_HOME or JBOSS_HOME from within Rails/Ruby?
For anyone still interested, I found that I can use ENV[‘JBOSS_HOME’] on JRuby; haven’t checked if it works on C Ruby, but I would guess it does.