Skip to content

Commit

Permalink
Ability to override param files... for internal use
Browse files Browse the repository at this point in the history
  • Loading branch information
Antons Kranga committed May 28, 2021
1 parent ef4bd67 commit 854aadb
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions hub-stack-elaborate
Expand Up @@ -16,6 +16,13 @@ Parameters:
EOF
}

if test ! -f .env; then
echo "* Error: configuration '.env' has not been found"
exit 1
fi
dotenv=$(dirname "$0")/env/dotenv
eval "$($dotenv export -f ".env" )"

HUB_OPTS=
while [ "$1" != "" ]; do
case $1 in
Expand All @@ -24,6 +31,9 @@ while [ "$1" != "" ]; do
-h | --help ) usage
exit
;;
--hub-files ) shift
HUB_FILES="$1"
;;
-- ) shift
HUB_OPTS="$HUB_OPTS $*"
break
Expand All @@ -34,13 +44,6 @@ while [ "$1" != "" ]; do
shift
done

if [[ ! -f .env ]]; then
echo "* Error: configuration '.env' has not been found"
exit 1
fi
dotenv=$(dirname "$0")/env/dotenv
eval "$($dotenv export -f ".env" )"

echo "Reconciling deployment plan for $HUB_STACK_NAME"
echo "* Using domain name: $HUB_DOMAIN_NAME"

Expand Down

0 comments on commit 854aadb

Please sign in to comment.