Files
dokku/plugins/ps/subcommands/startall
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
325 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_startall_cmd() {
declare desc="starts all apps via command line"
local cmd="ps:startall"
fn-ps-parallel-cmd "start"
}
ps_startall_cmd "$@"