libglm/lib/deploy.bash

16 lines
379 B
Bash
Raw Normal View History

2020-02-26 06:39:57 +00:00
#!/bin/bash
# Get the path to the deploy script for this host by name.
# $1 - the name of the deploy script
function deploy_get {
source $(libglm_mod fs)
source $(libglm_mod env)
echo "$(fs_glm 'deploys' $LIBGLM_HOSTNAME $1).bash"
}
# Execute the deploy script for this host by name.
# $1 - the name of the deploy script
function deploy_run {
bash -xe $(deploy_get $1)
}