fix: add missing functions
This commit is contained in:
1 parent
b7da215ab5
commit
9bad0795e2
1 file changed
+9
-2
@@ -4,12 +4,19 @@ source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|||||||
|
|
||||||
AVAILABLE_PHASES=(build deploy run)
|
AVAILABLE_PHASES=(build deploy run)
|
||||||
|
|
||||||
|
fn-get-phase-file-path() {
|
||||||
|
declare desc="return docker-options config file path for specified phase"
|
||||||
|
local APP="$1" PHASE="$2"
|
||||||
|
local PHASE_FILE="${DOKKU_ROOT}/${APP}/DOCKER_OPTIONS_${PHASE^^}"
|
||||||
|
echo "$PHASE_FILE"
|
||||||
|
}
|
||||||
|
|
||||||
get_phase_file_path() {
|
get_phase_file_path() {
|
||||||
declare desc="return docker-options config file path for specified phase"
|
declare desc="return docker-options config file path for specified phase"
|
||||||
local phase_file_prefix="DOCKER_OPTIONS_"
|
local phase_file_prefix="DOCKER_OPTIONS_"
|
||||||
local phase=$1
|
local phase=$1
|
||||||
[[ "$DOKKU_ROOT" && "$APP" && "$phase_file_prefix" && "$phase" ]] || dokku_log_fail "Error: phase_file_path is incomplete."
|
[[ "$APP" && "$phase" ]] || dokku_log_fail "Error: phase_file_path is incomplete."
|
||||||
echo "${DOKKU_ROOT}/${APP}/${phase_file_prefix}${phase^^}"
|
fn-get-phase-file-path "$APP" "$PHASE"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_phases() {
|
get_phases() {
|
||||||
|
|||||||
Reference in new issue
Block a user