mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
refactor: move get_cmd_from_procfile to ps/functions
Procfile handling should only be performed in the ps plugin
This commit is contained in:
@@ -392,17 +392,6 @@ get_app_running_container_types() {
|
||||
echo "$CONTAINER_TYPES"
|
||||
}
|
||||
|
||||
get_cmd_from_procfile() {
|
||||
declare desc="parse cmd from app Procfile"
|
||||
declare APP="$1" PROC_TYPE="$2" PORT="$3"
|
||||
local DOKKU_PROCFILE="$DOKKU_ROOT/$APP/DOKKU_PROCFILE"
|
||||
local COMMAND
|
||||
verify_app_name "$APP"
|
||||
|
||||
[[ ! -f $DOKKU_PROCFILE ]] && return
|
||||
procfile-util show --procfile "$PROC_TYPE" --default-port "$PORT"
|
||||
}
|
||||
|
||||
is_deployed() {
|
||||
declare desc="return 0 if given app has a running container"
|
||||
local APP="$1"
|
||||
|
||||
Reference in New Issue
Block a user