Created
April 8, 2020 09:53
-
-
Save IanVaughan/31faf8825d1743c822701d615bce3e8c to your computer and use it in GitHub Desktop.
See diffs between rails credentials
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
#!/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