From 48653e566319f75ca289543d2049cb90b856894f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 20 Feb 2017 22:44:51 -0700 Subject: [PATCH] chore: properly name functions --- plugins/proxy/commands | 2 +- plugins/proxy/internal-functions | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 plugins/proxy/internal-functions diff --git a/plugins/proxy/commands b/plugins/proxy/commands index db59fda92..3802db5ef 100755 --- a/plugins/proxy/commands +++ b/plugins/proxy/commands @@ -5,7 +5,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x case "$1" in help | proxy:help) - proxy_vhosts_help_cmd "$@" + proxy_help_cmd "$@" ;; *) diff --git a/plugins/proxy/internal-functions b/plugins/proxy/internal-functions old mode 100644 new mode 100755 index ec85d4ab2..3ff81c845 --- a/plugins/proxy/internal-functions +++ b/plugins/proxy/internal-functions @@ -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<, [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<