summaryrefslogtreecommitdiff
path: root/morphlib/app.py
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-03-20 12:16:09 +0000
committerBaserock Gerrit <gerrit@baserock.org>2015-04-30 17:06:11 +0000
commit1d57b196b793b9a332dd969295001e0e36617254 (patch)
tree17876360dd94fe8175384504d71df12f83afc8ce /morphlib/app.py
parent2985a4683adabe1d36029181dcc97d7974133a06 (diff)
downloadmorph-1d57b196b793b9a332dd969295001e0e36617254.tar.gz
Allow the deployment of individual chunks/strata from systems
This commit allows the specification of one or more strata/chunks in a deployment entry in a cluster morphology to deploy instead of the full system if --partial is set. These are listed in a 'partial-deploy-components' field in each deployment definition. The components must be in the system, and this only works for tarball or sysroot deployments. It SHOULD NOT be used when deploying production systems, as it has a number of limitations. Change-Id: I04ac58af57216335d9257f6620d09f18f61ea714
Diffstat (limited to 'morphlib/app.py')
-rw-r--r--morphlib/app.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/morphlib/app.py b/morphlib/app.py
index 637366e9..8fd8d5b0 100644
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -145,6 +145,10 @@ class Morph(cliapp.Application):
'always push temporary build branches to the '
'remote repository',
group=group_build)
+ self.settings.boolean(['partial'],
+ 'only build up to a given chunk',
+ default=False,
+ group=group_build)
self.settings.choice (['local-changes'],
['include', 'ignore'],
'the `build` and `deploy` commands detect '