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 Deployer
s.
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 TypeMethodDescriptionvoid
createTargets
(String site) Calls a Crafter Deployer to create any necessary targets for the site.void
deleteTargets
(String site) Deletes the targets associated with the site.void
duplicateTargets
(String sourceSiteId, String siteId) Call Crafter Deployer API to duplicate the site targets
-
Constructor Details
-
CompositeDeployer
-
-
Method Details
-
createTargets
Description copied from interface:Deployer
Calls a Crafter Deployer to create any necessary targets for the site.- Specified by:
createTargets
in interfaceDeployer
- Parameters:
site
- the site- Throws:
org.springframework.web.client.RestClientException
- if an error occurs
-
deleteTargets
Description copied from interface:Deployer
Deletes the targets associated with the site.- Specified by:
deleteTargets
in interfaceDeployer
- Parameters:
site
- the site- Throws:
org.springframework.web.client.RestClientException
- if an error occurs
-
duplicateTargets
Description copied from interface:Deployer
Call Crafter Deployer API to duplicate the site targets- Specified by:
duplicateTargets
in interfaceDeployer
- Parameters:
sourceSiteId
- the site to duplicate fromsiteId
- the new site id
-