chore: drop unused function
This commit is contained in:
1 parent
894984a002
commit
c621b3ed69
2 files changed
+1
-13
No files matched your search
@@ -2,7 +2,7 @@
|
|||||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||||
|
|
||||||
dokku_cleanup_cmd(){
|
dokku_cleanup_cmd() {
|
||||||
declare desc="cleans up old deployment cruft"
|
declare desc="cleans up old deployment cruft"
|
||||||
local cmd="cleanup"
|
local cmd="cleanup"
|
||||||
|
|
||||||
|
|||||||
@@ -398,18 +398,6 @@ is_deployed() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
is_container_running() {
|
|
||||||
declare desc="return 0 if given docker container id is in running state"
|
|
||||||
local CID=$1
|
|
||||||
local CONTAINER_STATUS=$(docker inspect -f '{{.State.Running}}' "$CID" || true)
|
|
||||||
|
|
||||||
if [[ "$CONTAINER_STATUS" == "true" ]]; then
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
is_container_status() {
|
is_container_status() {
|
||||||
declare desc="return 0 if given docker container id is in given state"
|
declare desc="return 0 if given docker container id is in given state"
|
||||||
local CID=$1
|
local CID=$1
|
||||||
|
|||||||
Reference in new issue
Block a user