-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce3125e
commit a28238c
Showing
16 changed files
with
139 additions
and
84 deletions.
There are no files selected for viewing
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,7 +220,5 @@ $RECYCLE.BIN/ | |
*.iml | ||
/bin | ||
/lib | ||
/aem.yml | ||
aem.log | ||
dist/ | ||
/config.yml | ||
aem/home/ |
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/usr/bin/env sh | ||
|
||
# print provisioning step header | ||
step () { | ||
DATE=$(date "+%Y-%m-%d %H:%M:%S") | ||
echo "[$DATE]" "$@" | ||
} | ||
|
||
# check last command | ||
clc () { | ||
if [ "$?" -ne 0 ]; then | ||
exit "$?" | ||
fi | ||
} | ||
|
||
# format seconds to more nice format | ||
duration () { | ||
T=$1 | ||
D=$((T/60/60/24)) | ||
H=$((T/60/60%24)) | ||
M=$((T/60%60)) | ||
S=$((T%60)) | ||
if [ $D -gt 0 ]; then | ||
printf '%d day(s) ' $D | ||
fi | ||
if [ $H -gt 0 ]; then | ||
printf '%d hour(s) ' $H | ||
fi | ||
if [ $M -gt 0 ]; then | ||
printf '%d minute(s) ' $M | ||
fi | ||
if [ $D -gt 0 ] || [ $H -gt 0 ] || [ $M -gt 0 ]; then | ||
printf 'and ' | ||
fi | ||
printf '%d second(s)\n' $S | ||
} | ||
|
||
detectOs () { | ||
case "$(uname)" in | ||
'Linux') | ||
echo "linux" | ||
;; | ||
'Darwin') | ||
echo "darwin" | ||
;; | ||
*) | ||
echo "windows" | ||
;; | ||
esac | ||
} | ||
|
||
detectArch () { | ||
uname -m | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env sh | ||
|
||
. aem/down.sh | ||
. aem/script/down.sh | ||
|
||
step "destroying instances" | ||
aem instance destroy | ||
|
File renamed without changes.
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
|
||
. aem/script/destroy.sh | ||
. aem/script/setup.sh |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
|
||
. aem/script/down.sh | ||
. aem/script/up.sh |
This file contains 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 characters
File renamed without changes.
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters