summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-07-04 15:27:08 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-07-05 14:35:46 +0000
commit89754d01d178d4f120c6b8a4b765c7175cc8dee5 (patch)
tree93b4fdeadd073cdd20ed6fcd154cd8c67e46b6b0
parent8a4dbd1c7911efb01f79e5e26201bc6523dbb172 (diff)
downloaddefinitions-89754d01d178d4f120c6b8a4b765c7175cc8dee5.tar.gz
Improve docstring for "morph copy-artifacts"
-rw-r--r--morphlib/plugins/copy-artifacts_plugin.py26
1 files changed, 24 insertions, 2 deletions
diff --git a/morphlib/plugins/copy-artifacts_plugin.py b/morphlib/plugins/copy-artifacts_plugin.py
index 583d5b0c..577d0ef2 100644
--- a/morphlib/plugins/copy-artifacts_plugin.py
+++ b/morphlib/plugins/copy-artifacts_plugin.py
@@ -40,7 +40,7 @@ class CopyArtifactsPlugin(cliapp.Plugin):
arg_synopsis='SYSTEM-ARTIFACT')
self.app.add_subcommand(
'copy-artifacts', self.copy_artifacts,
- arg_synopsis='SYSTEM DESTINATION')
+ arg_synopsis='SYSTEM-ARTIFACT DESTINATION')
def disable(self):
pass
@@ -72,7 +72,29 @@ class CopyArtifactsPlugin(cliapp.Plugin):
self.app.output.write(artifact + "\n")
def copy_artifacts(self, args):
- '''Copy every artifact that makes up a system to an rsync path'''
+ '''Copy every artifact that makes up a system to an rsync path.
+
+ Command line arguments:
+
+ * `SYSTEM-ARTIFACT` is the filename for a build artifact for
+ a system (ending in `-rootfs`).
+ * `DESTINATION` is a URL for where the artifacts are to be
+ copied to, in a form suitable for the rsync program.
+
+ This command is useful for copying artifacts from a local
+ system to a Morph artifact cache server, so they can be
+ shared by other people. It can also be used to archive
+ artifacts used for a release. Note, however, that it does
+ not include artifacts that are build-dependencies of the
+ strata included in the system, but not actually in cluded
+ in the system.
+
+ Example:
+
+ morph copy-artifacts /src/cache/artifacts/*.system.* \
+ cache.example.com:/srv/cache/
+
+ '''
if len(args) != 2:
raise cliapp.AppException(