X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/a504eefd8719a52b14217c2a1152db151504f99a..319f82896fb658d9bbaf8d01d6c2c7410eb967c7:/wizard/deploy.py diff --git a/wizard/deploy.py b/wizard/deploy.py index 158ad40..12a2781 100644 --- a/wizard/deploy.py +++ b/wizard/deploy.py @@ -161,6 +161,13 @@ class Deployment(object): self._app_version = None self._read_cache = {} self._old_log = None + def setAppVersion(self, app_version): + """ + Manually resets the application version; useful if the working + copy is off in space (i.e. not anchored to something we can + git describe off of) or there is no metadata to be heard of. + """ + self._app_version = app_version def read(self, file, force = False): """ Reads a file's contents, possibly from cache unless ``force`` @@ -507,13 +514,6 @@ class WorkingCopy(Deployment): modifications to without fear of interfering with a production deployment. More operations are permitted on these copies. """ - def setAppVersion(self, app_version): - """ - Manually resets the application version; useful if the working - copy is off in space (i.e. not anchored to something we can - git describe off of.) - """ - self._app_version = app_version @chdir_to_location def parametrize(self, deployment): """