From 6b7b11f5db1a0a6f7d8068d14e22537b4a1d7585 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 8 Jul 2014 17:02:20 +0100 Subject: do-release: 3 small cleanups Remove a comment that is no longer true, fix a formatting error, and add a docstring to a class that lacked one. --- scripts/do-release.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/do-release.py b/scripts/do-release.py index 43ce7201..5a86f090 100644 --- a/scripts/do-release.py +++ b/scripts/do-release.py @@ -41,8 +41,6 @@ class config(object): build_trove = 'hawkdevtrove' release_trove = 'git.baserock.org' - # Note that the 'location' field of the various systems in release.morph - # should match 'images_dir' here. deploy_workspace = '/src/ws-release' images_dir = '/src/release' artifacts_dir = '/src/release/artifacts' @@ -71,8 +69,7 @@ def status(message, *args): @contextlib.contextmanager def cwd(path): - ''' - Context manager to set current working directory.''' + '''Context manager to set current working directory.''' old_cwd = os.getcwd() os.chdir(path) try: @@ -212,6 +209,7 @@ class DeployImages(object): class ArtifactsBundle(object): + '''State that is the results of the PrepareArtifacts stage.''' def __init__(self, all_artifacts, new_artifacts, all_artifacts_manifest, all_artifacts_tar, new_artifacts_tar): -- cgit v1.2.1