mirror of
https://github.com/dokku/dokku.git
synced 2026-08-29 10:08:53 +02:00
The bare `init-process` and `parallel-schedule-count` keys previously returned the computed value, so external tooling could not tell whether a property had been set on the app or was merely defaulting. Both properties are now also configurable with `--global`, the report exposes `computed-*` and `global-*` keys alongside the bare raw keys, and the deploy path honors the global value before falling back to the linuxserver.io vendor heuristic.
34 lines
1.0 KiB
Bash
Executable File
34 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
cmd-scheduler-docker-local-help() {
|
|
declare desc="help command"
|
|
declare CMD="$1"
|
|
local plugin_name="scheduler-docker-local"
|
|
local plugin_description="Manage the docker-local scheduler integration for an app"
|
|
|
|
if [[ "$CMD" == "${plugin_name}:help" ]]; then
|
|
echo -e "Usage: dokku ${plugin_name}[:COMMAND]"
|
|
echo ''
|
|
echo "$plugin_description"
|
|
echo ''
|
|
echo 'Additional commands:'
|
|
fn-help-content | sort | column -c2 -t -s,
|
|
elif [[ $(ps -o command= $PPID) == *"--all"* ]]; then
|
|
fn-help-content
|
|
else
|
|
cat <<help_desc
|
|
$plugin_name, $plugin_description
|
|
help_desc
|
|
fi
|
|
}
|
|
|
|
fn-help-content() {
|
|
declare desc="return help content"
|
|
cat <<help_content
|
|
scheduler-docker-local:report [<app>] [<flag>], Displays a scheduler-docker-local report for one or more apps
|
|
scheduler-docker-local:set [<app>|--global] <property> (<value>), Set or clear a scheduler-docker-local property for an app or globally
|
|
help_content
|
|
}
|