Created
April 28, 2011 09:14
-
-
Save yvesvanbroekhoven/946066 to your computer and use it in GitHub Desktop.
check for dir path in Rails config files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case Etc.getpwuid(Process.uid).name | |
when 'your name' | |
# my config | |
when 'my name' | |
# my config | |
else | |
# everybody else | |
end |
Ok, after some tests, this is a working case:
case Etc.getpwuid(Process.uid).name
...
development:
<% case Etc.getpwuid(Process.uid).name
when 'your name' %>
# your config
<% else %>
# my config
<% end %>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
will try :)