Class DeleteLocalRepoFolderLifecycleHook
- java.lang.Object
-
- org.craftercms.deployer.impl.lifecycle.AbstractLifecycleHook
-
- org.craftercms.deployer.impl.lifecycle.DeleteLocalRepoFolderLifecycleHook
-
- All Implemented Interfaces:
TargetLifecycleHook
,InitializableByConfigBean
public class DeleteLocalRepoFolderLifecycleHook extends AbstractLifecycleHook
Implementation ofTargetLifecycleHook
that deletes the local Git clone of a remote repo.- Since:
- 3.1.8
- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description protected Path
localRepoFolder
-
Fields inherited from class org.craftercms.deployer.impl.lifecycle.AbstractLifecycleHook
CONFIG_KEY_DISABLED, disabled, logger
-
-
Constructor Summary
Constructors Constructor Description DeleteLocalRepoFolderLifecycleHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecute(Target target)
protected void
doInit(org.apache.commons.configuration2.Configuration config)
void
setLocalRepoFolder(String localRepoFolder)
-
Methods inherited from class org.craftercms.deployer.impl.lifecycle.AbstractLifecycleHook
execute, init
-
-
-
-
Field Detail
-
localRepoFolder
protected Path localRepoFolder
-
-
Method Detail
-
setLocalRepoFolder
public void setLocalRepoFolder(String localRepoFolder)
-
doInit
protected void doInit(org.apache.commons.configuration2.Configuration config) throws org.craftercms.commons.config.ConfigurationException, DeployerException
- Specified by:
doInit
in classAbstractLifecycleHook
- Throws:
org.craftercms.commons.config.ConfigurationException
DeployerException
-
doExecute
protected void doExecute(Target target) throws DeployerException
- Specified by:
doExecute
in classAbstractLifecycleHook
- Throws:
DeployerException
-
-