import dateutil.parser
import wizard
+from wizard import app
import wizard.deploy # to break circular loop
# This code operates off of the assumption of .scripts-version, which
rev.source = DeploySource.parse(line)
elif i == 3:
try:
- rev.version = wizard.deploy.ApplicationVersion.parse(line)
- except wizard.deploy.Error as e:
+ rev.version = app.ApplicationVersion.parse(line)
+ except (wizard.deploy.Error, app.Error) as e:
e.location = deployment.location
raise e, None, sys.exc_info()[2]
else:
this revision, what application version this is, etc."""
def __init__(self, datetime=None, user=None, source=None, version=None):
""" `datetime` Time this revision was deployed
- `user` Person who deployed this revision, in user@host format.
- `source` Instance of DeploySource
- `version` Instance of ApplicationVersion
+ `user` Person who deployed this revision, in ``user@host`` format.
+ `source` Instance of :class:`DeploySource`
+ `version` Instance of :class:`app.ApplicationVersion`
Note: This object is typically built incrementally."""
self.datetime = datetime
self.user = user