Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Created April 8, 2020 09:53
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 IanVaughan/31faf8825d1743c822701d615bce3e8c to your computer and use it in GitHub Desktop.
Save IanVaughan/31faf8825d1743c822701d615bce3e8c to your computer and use it in GitHub Desktop.
See diffs between rails credentials
#!/usr/bin/env bash
# usage: On your branch or commit 'cred-diff production'
git checkout production --quiet
rails credentials:show --environment $1 > /tmp/prod
git checkout - --quiet
rails credentials:show --environment $1 > /tmp/yours
diff /tmp/prod /tmp/yours
rm /tmp/prod /tmp/yours
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment