summaryrefslogtreecommitdiff
path: root/morphlib/exts
diff options
context:
space:
mode:
authorPete Fotheringham <pete.fotheringham@codethink.co.uk>2014-12-05 15:34:07 +0000
committerPete Fotheringham <pete.fotheringham@codethink.co.uk>2014-12-08 08:40:02 +0000
commitf7ca518de2f6761059d107e0e59ab470dd625192 (patch)
tree1b20356a9d8c068a4407872de2e4e322c4a8bf3d /morphlib/exts
parentd841584f96f03ed3d3d38875e8c1d3ad5f48b770 (diff)
downloadmorph-f7ca518de2f6761059d107e0e59ab470dd625192.tar.gz
Add a reference to write.help file
Diffstat (limited to 'morphlib/exts')
-rwxr-xr-xmorphlib/exts/openstack.write1
-rwxr-xr-xmorphlib/exts/rawdisk.write12
-rwxr-xr-xmorphlib/exts/ssh-rsync.write10
3 files changed, 5 insertions, 18 deletions
diff --git a/morphlib/exts/openstack.write b/morphlib/exts/openstack.write
index faf47f54..d29d2661 100755
--- a/morphlib/exts/openstack.write
+++ b/morphlib/exts/openstack.write
@@ -28,6 +28,7 @@ import morphlib.writeexts
class OpenStackWriteExtension(morphlib.writeexts.WriteExtension):
+ '''See openstack.write.help for documentation'''
def process_args(self, args):
if len(args) != 2:
diff --git a/morphlib/exts/rawdisk.write b/morphlib/exts/rawdisk.write
index b17f8aa7..d91a4d5f 100755
--- a/morphlib/exts/rawdisk.write
+++ b/morphlib/exts/rawdisk.write
@@ -29,19 +29,12 @@ import morphlib.writeexts
class RawDiskWriteExtension(morphlib.writeexts.WriteExtension):
- '''Create a raw disk image during Morph's deployment.
-
- If the image already exists, it is upgraded.
-
- The location command line argument is the pathname of the disk image
- to be created/upgraded.
-
- '''
+ '''See rawdisk.write.help for documentation'''
def process_args(self, args):
if len(args) != 2:
raise cliapp.AppException('Wrong number of command line args')
-
+
temp_root, location = args
upgrade = self.get_environment_boolean('UPGRADE')
@@ -114,4 +107,3 @@ class RawDiskWriteExtension(morphlib.writeexts.WriteExtension):
RawDiskWriteExtension().run()
-
diff --git a/morphlib/exts/ssh-rsync.write b/morphlib/exts/ssh-rsync.write
index 2d7258ba..c4577026 100755
--- a/morphlib/exts/ssh-rsync.write
+++ b/morphlib/exts/ssh-rsync.write
@@ -37,14 +37,8 @@ def ssh_runcmd_ignore_failure(location, command, **kwargs):
class SshRsyncWriteExtension(morphlib.writeexts.WriteExtension):
- '''Upgrade a running baserock system with ssh and rsync.
-
- It assumes the system is baserock-based and has a btrfs partition.
-
- The location command line argument is the 'user@hostname' string
- that will be passed to ssh and rsync
-
- '''
+ '''See ssh-rsync.write.help for documentation'''
+
def find_root_disk(self, location):
'''Read /proc/mounts on location to find which device contains "/"'''