Created
June 28, 2013 18:54
-
-
Save jimryan/5887101 to your computer and use it in GitHub Desktop.
Use git user.name config value for New Relic deploy user in Capistrano
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
# Set New Relic user to git user name if it's set | |
`git config --global user.name`.strip.tap do |user| | |
set(:newrelic_user, user) unless user.empty? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment