Last active
June 25, 2021 15:04
-
-
Save IanVaughan/3aedee4a75d88ed0b9bbb2f428652805 to your computer and use it in GitHub Desktop.
Revisions
-
Ian Vaughan revised this gist
Jun 25, 2021 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,14 @@ #!/usr/bin/env bash # Usage: # diff-creds production git checkout master --quiet printf . rails credentials:show --environment $1 > /tmp/prod printf . git checkout - --quiet printf . rails credentials:show --environment $1 > /tmp/yours echo diff -C5 /tmp/prod /tmp/yours rm /tmp/prod /tmp/yours -
Ian Vaughan revised this gist
Jun 25, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ # Usage: # diff-creds production git checkout master --quiet rails credentials:show --environment $1 > /tmp/prod git checkout - --quiet -
Ian Vaughan created this gist
Jun 25, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ git checkout master --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