summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-07-08 17:02:20 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-07-08 17:03:52 +0100
commit6b7b11f5db1a0a6f7d8068d14e22537b4a1d7585 (patch)
treecad7d3d5f8fb8af06f1db5a4c9d4291e2e24cb51 /scripts
parent5994728a447e0bf76bf97414891b3f7be01d60b3 (diff)
downloaddefinitions-6b7b11f5db1a0a6f7d8068d14e22537b4a1d7585.tar.gz
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/do-release.py6
1 files changed, 2 insertions, 4 deletions
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):