|
|
@ -45,11 +45,6 @@ cfg-get-value() { |
|
|
|
} |
|
|
|
export -f cfg-get-value |
|
|
|
|
|
|
|
yaml_get_interpret() { |
|
|
|
shyaml get-value |
|
|
|
} |
|
|
|
export -f yaml_get_interpret |
|
|
|
|
|
|
|
get_top_master_service_for_service() { |
|
|
|
local service="$1" |
|
|
|
echo "$service" |
|
|
@ -62,6 +57,12 @@ get_service_charm() { |
|
|
|
} |
|
|
|
export -f get_service_charm |
|
|
|
|
|
|
|
charm.get_dir() { |
|
|
|
local charm="$1" |
|
|
|
echo "/path/to/charm-store/$charm" |
|
|
|
} |
|
|
|
export -f charm.get_dir |
|
|
|
|
|
|
|
export CACHEDIR=$(mktemp -d -t tmp.XXXXXXXXXX) |
|
|
|
export state_tmpdir=$(mktemp -d -t tmp.XXXXXXXXXX) |
|
|
|
trap "rm -rf \"$state_tmpdir\"" EXIT |
|
|
@ -107,7 +108,7 @@ is out '' TRIM |
|
|
|
|
|
|
|
|
|
|
|
try " |
|
|
|
set pipefail && |
|
|
|
set -o pipefail && |
|
|
|
cron:entries_from_service 'foo' ' |
|
|
|
(0 0 * * *) {-p 10 -k} dc run --rm foo |
|
|
|
' | tr '\0' '\n'" "one command no label" |
|
|
@ -118,7 +119,7 @@ is out "\ |
|
|
|
|
|
|
|
|
|
|
|
try " |
|
|
|
set pipefail && |
|
|
|
set -o pipefail && |
|
|
|
cron:entries_from_service 'foo' ' |
|
|
|
wiz: (0 0 * * *) {-p 10 -k} dc run --rm foo |
|
|
|
' | tr '\0' '\n'" "one command with label" |
|
|
@ -130,7 +131,7 @@ is out "\ |
|
|
|
|
|
|
|
|
|
|
|
try " |
|
|
|
set pipefail && |
|
|
|
set -o pipefail && |
|
|
|
cron:entries_from_service 'foo' ' |
|
|
|
wiz: (0 0 * * *) {-p 10 -k} dc run --rm foo |
|
|
|
bam: (@daily) {-p 10 -D -k} dc run --rm foo --hop |
|
|
@ -145,7 +146,7 @@ is out "\ |
|
|
|
|
|
|
|
|
|
|
|
try " |
|
|
|
set pipefail && |
|
|
|
set -o pipefail && |
|
|
|
cron:entries_from_service 'foo' '!var-expand |
|
|
|
(0 0 * * *) {-p 10 -k} dc run --rm \$BASE_SERVICE_NAME \$MASTER_BASE_SERVICE_NAME |
|
|
|
' | tr '\0' '\n'" "using relation's var" |
|
|
|