Skip to content

Instantly share code, notes, and snippets.

@jimryan
Created June 28, 2013 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimryan/5887101 to your computer and use it in GitHub Desktop.
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
# 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