Rename functions

This commit is contained in:
Luke Murphy 2020-03-22 00:10:40 +01:00
parent 50914efdc5
commit c611603eb5
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 6 additions and 5 deletions

View File

@ -2,8 +2,10 @@
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
ansible_default_cmd() {
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
cmd-ansible-default() {
dokku_log_fail "Please use one of the specified commands, run dokku ansible:help"
}
ansible_default_cmd "$@"
cmd-ansible-default "$@"

View File

@ -4,10 +4,9 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
ansible_vault_pass_cmd() {
cmd-ansible-vault-pass() {
#shellcheck disable=SC2034
declare desc="insert new vault password for encrypt/decrypt of passwords"
local cmd="ansible:vault-pass"
if [[ -f "$DOKKU_LIB/data/ansible/.vault-pass" ]]; then
dokku_col_log_info1_quiet "Vault password already in place"
@ -26,4 +25,4 @@ ansible_vault_pass_cmd() {
}
ansible_vault_pass_cmd "$@"
cmd-ansible-vault-pass "$@"