Package org.craftercms.deployer.impl
Class DeploymentServiceImpl
java.lang.Object
org.craftercms.deployer.impl.DeploymentServiceImpl
- All Implemented Interfaces:
DeploymentService
@Component("deploymentService")
public class DeploymentServiceImpl
extends Object
implements DeploymentService
Default implementation of
DeploymentService
.- Author:
- avasquez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeployAllTargets
(boolean waitTillDone, Map<String, Object> params) Deploys all targetsDeploys a single target
-
Field Details
-
targetService
-
-
Constructor Details
-
DeploymentServiceImpl
-
-
Method Details
-
deployAllTargets
public List<Deployment> deployAllTargets(boolean waitTillDone, Map<String, Object> params) throws DeploymentServiceExceptionDescription copied from interface:DeploymentService
Deploys all targets- Specified by:
deployAllTargets
in interfaceDeploymentService
- Parameters:
waitTillDone
- if the method should wait till all deployments are done or return immediatelyparams
- additional parameters that can be used by the deployment processors- Returns:
- the list of deployment info for each target
- Throws:
DeploymentServiceException
- if there was an error while executing the deployments
-
deployTarget
public Deployment deployTarget(String env, String siteName, boolean waitTillDone, Map<String, Object> params) throws TargetNotFoundException, DeploymentServiceExceptionDescription copied from interface:DeploymentService
Deploys a single target- Specified by:
deployTarget
in interfaceDeploymentService
- Parameters:
env
- the target's environment (e.g. dev)siteName
- the target's site name (e.g. mysite)waitTillDone
- if the method should wait till the deployment is done or return immediatelyparams
- additional parameters that can be used by the deployment processors- Returns:
- the deployment info
- Throws:
DeploymentServiceException
- if there was an error while executing the deploymentsTargetNotFoundException
-