deploy_tools.snapshot#
Members
Raised when a deployment snapshot is missing or in an unexpected state. |
|
Create a snapshot file for the deployment configuration. |
|
Load snapshot of the Deployment configuration taken at start of Deploy step. |
|
Load the deployment snapshot from the given git ref of the deployment area. |
- exception deploy_tools.snapshot.SnapshotError[source]#
Raised when a deployment snapshot is missing or in an unexpected state.
- deploy_tools.snapshot.create_snapshot(deployment: Deployment, layout: Layout) None[source]#
Create a snapshot file for the deployment configuration.
This snapshot can then be used to compare the previous and current deployment configuration when a compare, validate or sync process is run.
- deploy_tools.snapshot.load_snapshot(layout: Layout, from_scratch: bool = False) Deployment[source]#
Load snapshot of the Deployment configuration taken at start of Deploy step.
- Parameters:
layout – The
Layoutrepresenting the Deployment Area.from_scratch – If True, this will return the default
Deploymentconfiguration in order to work with an empty Deployment Area.
- deploy_tools.snapshot.load_snapshot_from_ref(layout: Layout, ref: str) Deployment[source]#
Load the deployment snapshot from the given git ref of the deployment area.