Class ServerlessDeliveryDeployer
- java.lang.Object
-
- org.craftercms.studio.impl.v2.deployment.AbstractDeployer
-
- org.craftercms.studio.impl.v2.deployment.ServerlessDeliveryDeployer
-
- All Implemented Interfaces:
Deployer
public class ServerlessDeliveryDeployer extends AbstractDeployer
Implementation ofDeployer
that interacts with the Serverless DeliveryDeployer
, only if serverless delivery is enabled.- Author:
- avasquez
-
-
Field Summary
-
Fields inherited from class org.craftercms.studio.impl.v2.deployment.AbstractDeployer
restTemplate, studioConfiguration
-
-
Constructor Summary
Constructors Constructor Description ServerlessDeliveryDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.protected String
getCreateTargetUrl()
protected String
getDeleteTargetUrl(String site, String environment)
protected boolean
isServerlessDeliveryEnabled()
-
Methods inherited from class org.craftercms.studio.impl.v2.deployment.AbstractDeployer
addAdditionalParams, addChildParams, doCreateTarget, doDeleteTarget, getCreateTargetRequestBody, getRepoUrl, setStudioConfiguration
-
-
-
-
Method Detail
-
createTargets
public void createTargets(String site) throws org.springframework.web.client.RestClientException
Description copied from interface:Deployer
Calls a Crafter Deployer to create any necessary targets for the site.- Parameters:
site
- the site- Throws:
org.springframework.web.client.RestClientException
- if an error occurs
-
deleteTargets
public void deleteTargets(String site) throws org.springframework.web.client.RestClientException
Description copied from interface:Deployer
Deletes the targets associated with the site.- Parameters:
site
- the site- Throws:
org.springframework.web.client.RestClientException
- if an error occurs
-
getCreateTargetUrl
protected String getCreateTargetUrl()
- Specified by:
getCreateTargetUrl
in classAbstractDeployer
-
getDeleteTargetUrl
protected String getDeleteTargetUrl(String site, String environment)
- Specified by:
getDeleteTargetUrl
in classAbstractDeployer
-
isServerlessDeliveryEnabled
protected boolean isServerlessDeliveryEnabled()
-
-