Rename functions
This commit is contained in:
parent
50914efdc5
commit
c611603eb5
@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
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"
|
dokku_log_fail "Please use one of the specified commands, run dokku ansible:help"
|
||||||
}
|
}
|
||||||
|
|
||||||
ansible_default_cmd "$@"
|
cmd-ansible-default "$@"
|
||||||
|
@ -4,10 +4,9 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|||||||
|
|
||||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||||
|
|
||||||
ansible_vault_pass_cmd() {
|
cmd-ansible-vault-pass() {
|
||||||
#shellcheck disable=SC2034
|
#shellcheck disable=SC2034
|
||||||
declare desc="insert new vault password for encrypt/decrypt of passwords"
|
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
|
if [[ -f "$DOKKU_LIB/data/ansible/.vault-pass" ]]; then
|
||||||
dokku_col_log_info1_quiet "Vault password already in place"
|
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 "$@"
|
||||||
|
Reference in New Issue
Block a user