Class CompositeDeployer
java.lang.Object
org.craftercms.studio.impl.v2.deployment.CompositeDeployer
- All Implemented Interfaces:
Deployer
Composite
Deployer that calls createTargets(String) and deleteTargets(String)
in multiple Deployers.
On create, if one of the Deployer fails, the targets that were created successfully previously are
roll-backed (with deleteTargets(String)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateTargets(String site) Calls a Crafter Deployer to create any necessary targets for the site.voiddeleteTargets(String site) Deletes the targets associated with the site.voidduplicateTargets(String sourceSiteId, String siteId) Call Crafter Deployer API to duplicate the site targets
-
Constructor Details
-
CompositeDeployer
-
-
Method Details
-
createTargets
Description copied from interface:DeployerCalls a Crafter Deployer to create any necessary targets for the site.- Specified by:
createTargetsin interfaceDeployer- Parameters:
site- the site- Throws:
org.springframework.web.client.RestClientException- if an error occurs
-
deleteTargets
Description copied from interface:DeployerDeletes the targets associated with the site.- Specified by:
deleteTargetsin interfaceDeployer- Parameters:
site- the site- Throws:
org.springframework.web.client.RestClientException- if an error occurs
-
duplicateTargets
Description copied from interface:DeployerCall Crafter Deployer API to duplicate the site targets- Specified by:
duplicateTargetsin interfaceDeployer- Parameters:
sourceSiteId- the site to duplicate fromsiteId- the new site id
-