This adds the ability to specify internal, resource specific edges, with and without notifications. We use the special words: "Notify", "Before", "Listen", and "Depend". They must have the first character capitalized. They also support the "elvis" operator.
19 lines
266 B
Plaintext
19 lines
266 B
Plaintext
$b = true
|
|
if $b {
|
|
exec "exec0" {
|
|
cmd => "sleep 10s",
|
|
shell => "/bin/bash",
|
|
}
|
|
}
|
|
exec "exec1" {
|
|
cmd => "sleep 10s",
|
|
shell => "/bin/bash",
|
|
|
|
Depend => $b ?: Exec["exec0"],
|
|
Before => Exec["exec2"],
|
|
}
|
|
exec "exec2" {
|
|
cmd => "sleep 10s",
|
|
shell => "/bin/bash",
|
|
}
|