diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-02-17 17:27:04 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-03-04 14:47:24 +0000 |
commit | c09cfa3ec95933d3c8bb52d46e5edf6808513145 (patch) | |
tree | 123b6e11124a7b8139d9391e7fb69ec70a22c38b /yarns/implementations.yarn | |
parent | d806c844ac54fe48c13bd5beb2a4c01f993aa251 (diff) | |
download | morph-c09cfa3ec95933d3c8bb52d46e5edf6808513145.tar.gz |
deploy: Add upgrading to deployment.yarn
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. |