-
Notifications
You must be signed in to change notification settings - Fork 36
/
concierge-docker
43 lines (35 loc) · 848 Bytes
/
concierge-docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
# Concierge - A bash CLI tool for running Concierge in docker
# Written By: Matthew Hartstonge <[email protected]>
# Soak in user params
ARGS="$@"
# Runs Concierge given a string of whitespace separated integrations
function runConcierge() {
cd /concierge
echo "Starting Concierge"'!'
node main.js $1
echo
echo " ... You killed me ... You Monster."
}
# Given params will build up an array of integrations that Concierge will start on
function main() {
if [ -z "${ARGS}" ]; then
usage
exit 1
fi
opts=()
# process args
for arg in ${ARGS}; do
case ${arg} in
# Provide a way to escape to bash *nicely*
'cmd')
bash
exit 0 ;;
# Default case
*)
opts+=(${arg}) ;;
esac
done
runConcierge ${opts[@]}
}
main