summaryrefslogtreecommitdiff
path: root/without-test-modules
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-12-17 14:16:53 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-02-21 15:06:18 +0000
commit6d901c09f611b3cb98d6b88bf99810782610c617 (patch)
tree23bc641a9aa0cd2be4ec0e79ec03e7aae100ad13 /without-test-modules
parente2a99f9bb762e61053cd3ee788390d0b2bb5e72d (diff)
downloadmorph-6d901c09f611b3cb98d6b88bf99810782610c617.tar.gz
Add ExtractedTarball class and method to extract/mount an artifact
ExtractedTarball is more or less the equivalent to MountableImage for artifacts that are not mountable images. So in order to inspect root file system tarballs, ExtractedTarball can be used, for disk images, MountableImage can be used. The morphlib.bins.call_in_artifact_directory() method combines these two classes and provides a way to extract/mount an artifact and call a callback with the temporary directory / mount point as its first argument. Using this, a plugin that runs a command relative to an artifact's root directory can be written easily.
Diffstat (limited to 'without-test-modules')
-rw-r--r--without-test-modules1
1 files changed, 1 insertions, 0 deletions
diff --git a/without-test-modules b/without-test-modules
index bd82963f..7ba80129 100644
--- a/without-test-modules
+++ b/without-test-modules
@@ -6,6 +6,7 @@ morphlib/git.py
morphlib/fsutils.py
morphlib/app.py
morphlib/mountableimage.py
+morphlib/extractedtarball.py
morphlib/plugins/hello_plugin.py
morphlib/plugins/graphing_plugin.py
morphlib/plugins/syslinux-disk-systembuilder_plugin.py