summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-02-12 18:24:36 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-03-04 12:08:18 +0000
commitb5c91e43ff41e1a40570038cf64c32987c676b42 (patch)
treebb0736191dd7cab80879fbbe880a6ab874443055
parentdfc580fe6a757985ee9f8954b530d041b2b5a5b0 (diff)
downloadmorph-b5c91e43ff41e1a40570038cf64c32987c676b42.tar.gz
deploy: Add new --upgrade option
-rw-r--r--morphlib/plugins/deploy_plugin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py
index e8f1d217..66058973 100644
--- a/morphlib/plugins/deploy_plugin.py
+++ b/morphlib/plugins/deploy_plugin.py
@@ -36,6 +36,13 @@ import morphlib.plugins.branch_and_merge_plugin
class DeployPlugin(cliapp.Plugin):
def enable(self):
+ group_deploy = 'Deploy Options'
+ self.app.settings.boolean(['upgrade'],
+ 'specify that you want to upgrade an '
+ 'existing cluster of systems rather than do '
+ 'an initial deployment',
+ group=group_deploy)
+
self.app.add_subcommand(
'deploy', self.deploy,
arg_synopsis='CLUSTER [SYSTEM.KEY=VALUE]')