File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -91,33 +91,28 @@ function cfnl-show() {
9191 echo "CFNL_PATH: ($CFNL_PATH)"
9292}
9393
94- function cfnl-set-vars() {
95- cfnl_configs_path="$HOME/.cfnl"
96- region=$1
97- client=$2
98- aws_account=$3
99- aws_env=$4
100- project=$5
94+ function cfnl-set-path() {
95+ cfnl_configs_path=$1
10196
102- export CFNL_PATH="$cfnl_configs_path/$region/$client/$aws_account/$aws_env/$project "
97+ export CFNL_PATH="$cfnl_configs_path"
10398 cfnl-show
10499}
105100
106101# Default
107- cfnl-set-vars uswest2 client01 account01 prd project01
102+ cfnl-set-path $HOME/.cfnl/ uswest2/client1/ account01/ prd/ project01
108103
109104function cfc() {
110- echo "Running (/usr/local/bin/cfnl -f ${CFNL_PATH}/${1}.yml)"
105+ echo "Running Create Stack (/usr/local/bin/cfnl -f ${CFNL_PATH}/${1}.yml)"
111106 /usr/local/bin/cfnl -f "$CFNL_PATH/$1.yml"
112107}
113108
114109function cfu() {
115- echo "Running (/usr/local/bin/cfnl -u -f ${CFNL_PATH}/${1}.yml)"
110+ echo "Running Update Stack (/usr/local/bin/cfnl -u -f ${CFNL_PATH}/${1}.yml)"
116111 /usr/local/bin/cfnl -u -f "$CFNL_PATH/$1.yml"
117112}
118113
119114function cfd() {
120- echo "Running (/usr/local/bin/cfnl -d -f ${CFNL_PATH}/${1}.yml)"
115+ echo "Running Delete Stack (/usr/local/bin/cfnl -d -f ${CFNL_PATH}/${1}.yml)"
121116 /usr/local/bin/cfnl -d -f "$CFNL_PATH/$1.yml"
122117}
123118` ` `
You can’t perform that action at this time.
0 commit comments