Skip to content

Commit

Permalink
Add a handy helper rc script to allow easy local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
DRuggeri committed Apr 7, 2022
1 parent 6a66b4f commit 39b731b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions scripts/set-local-testing.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
if [ ! -f README.md ];then
echo "Run this command from the root of the project directory"
else
FILE="dev.tfrc"
CFG=`realpath $FILE`
ROOTDIR=`dirname $CFG`

echo "
provider_installation {
dev_overrides {
\"Mastercard/restapi\" = \"$ROOTDIR\"
}
}
" > "$FILE"

export TF_CLI_CONFIG_FILE="$CFG"
fi

0 comments on commit 39b731b

Please sign in to comment.