Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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