Package org.craftercms.deployer.api
Interface DeploymentService
- All Known Implementing Classes:
DeploymentServiceImpl
public interface DeploymentService
Service for doing deployments.
- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptiondeployAllTargets
(boolean waitTillDone, Map<String, Object> params) Deploys all targetsDeploys a single target
-
Method Details
-
deployAllTargets
List<Deployment> deployAllTargets(boolean waitTillDone, Map<String, Object> params) throws DeploymentServiceExceptionDeploys all targets- 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
Deployment deployTarget(String env, String siteName, boolean waitTillDone, Map<String, Object> params) throws TargetNotFoundException, DeploymentServiceExceptionDeploys a single target- 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
-