chore: properly name functions

This commit is contained in:
Jose Diaz-Gonzalez
2017-02-20 22:44:51 -07:00
parent ec2e2bc4cc
commit 48653e5663
2 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
case "$1" in
help | proxy:help)
proxy_vhosts_help_cmd "$@"
proxy_help_cmd "$@"
;;
*)

8
plugins/proxy/internal-functions Normal file → Executable file
View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
proxy_vhosts_help_content_func() {
proxy_help_content_func() {
declare desc="return proxy plugin help content"
cat<<help_content
proxy <app>, [DEPRECATED] Show proxy settings for app
@@ -16,16 +16,16 @@ proxy_vhosts_help_content_func() {
help_content
}
proxy_vhosts_help_cmd() {
proxy_help_cmd() {
if [[ $1 = "proxy:help" ]] ; then
echo -e 'Usage: dokku proxy[:COMMAND]'
echo ''
echo 'Manage the proxy used by dokku on a per app.'
echo ''
echo 'Additional commands:'
proxy_vhosts_help_content_func | sort | column -c2 -t -s,
proxy_help_content_func | sort | column -c2 -t -s,
elif [[ $(ps -o command= $PPID) == *"--all"* ]]; then
proxy_vhosts_help_content_func
proxy_help_content_func
else
cat<<help_desc
proxy, Manage the proxy used by dokku on a per app