diff options
Diffstat (limited to 'yarns/implementations.yarn')
-rw-r--r-- | yarns/implementations.yarn | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn index ccebabca..1e1b2fd5 100644 --- a/yarns/implementations.yarn +++ b/yarns/implementations.yarn @@ -663,6 +663,16 @@ them, so they can be added to the end of the implements section. if [ $MATCH_1 == "deploys" ]; then run_morph "$@" else attempt_morph "$@"; fi + IMPLEMENTS WHEN the user (attempts to upgrade|upgrades) the (system|cluster) (\S+) in branch (\S+)( with options (.*))? + cd "$DATADIR/workspace/$MATCH_4" + set -- deploy --upgrade "$MATCH_3" + if [ "$MATCH_5" != '' ]; then + # eval used so word splitting in the text is preserved + eval set -- '"$@"' $MATCH_6 + fi + if [ $MATCH_1 == "upgrades" ]; then run_morph "$@" + else attempt_morph "$@"; fi + To successfully deploy systems, we need a cluster morphology. Since the common case is to just have one system, we generate a stub morphology with only the minimal information. |