forked from crisward/dokku-require
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands
executable file
·42 lines (36 loc) · 1 KB
/
commands
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
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/require/functions"
case "$1" in
help | require:help)
help_content_func() {
declare desc="return help_content string"
cat<<help_content
require, reads app.json and sets up plugins and volumes for the app
require:mode, sets an alternative prefix for the app.json file
help_content
}
if [[ $1 = "require:help" ]] ; then
echo -e 'Usage: add an app.json file to your repo before pushing'
echo ''
echo 'For more help see https://github.com/crisward/dokku-require'
echo ''
echo 'dokku require:mode'
echo ''
echo 'Sets the key to be read from in app.json, defaults to "dokku"'
echo ''
else
help_content_func
fi
;;
require)
require_main_cmd "$@"
;;
require:mode)
require_mode_cmd "$@"
;;
*)
exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
;;
esac