Files
dokku/plugins/ps/subcommands/stopall
Jose Diaz-Gonzalez fc5544ac70 refactor: use a single method for running the ps:*all commands
This reduces the duplication at the cost of slightly more complexity.
2019-06-10 13:05:57 -04:00

15 lines
320 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/ps/internal-functions"
ps_stopall_cmd() {
declare desc="stops all apps via command line"
local cmd="ps:stopall"
fn-ps-parallel-cmd "stop"
}
ps_stopall_cmd "$@"