Skip to content

Commit

Permalink
feat: add ability to use hook function
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Kozlov committed Oct 6, 2020
1 parent c076a8d commit 43c013e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions integ/scripts/bash/rfdk-integ-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ export INFRASTRUCTURE_DEPLOY_FINISH_TIME=$SECONDS

# Pull the top level directory for each cdk app in the components directory
for COMPONENT in **/cdk.json; do
# Invoke hook function if it is exported and name is defined in HOOK_FUNCTION variable
if [ -n "$HOOK_FUNCTION" ] && [ "$(type -t $HOOK_FUNCTION)" == "function" ]
then
$HOOK_FUNCTION
fi

COMPONENT_ROOT="$(dirname "$COMPONENT")"
COMPONENT_NAME=$(basename "$COMPONENT_ROOT")
# Use a pattern match to exclude the infrastructure app from the results
Expand Down

0 comments on commit 43c013e

Please sign in to comment.