public function undeploy(ContainerConfigurationInterface $containerNode, $uuid)
    {

        // try to load the app node with the passe UUID
        if ($appNode = $this->load($uuid)) {
            // prepare file name
            $extractor = $this->getExtractor();
            $fileName = $appNode->getName() . $extractor->getExtensionSuffix();

            // load the file info
            $archive = new \SplFileInfo($this->getDeployDir($containerNode) . DIRECTORY_SEPARATOR . $fileName);

            // un-flag the archiv => un-deploy it with the next restart
            $extractor->unflagArchive($archive);
        }
    }
public function undeploy(ContainerConfigurationInterface $containerNode, $uuid)
    {

        // try to load the app node with the passe UUID
        if ($appNode = $this->load($uuid)) {
            // prepare file name
            $extractor = $this->getExtractor();
            $fileName = $appNode->getName() . $extractor->getExtensionSuffix();

            // load the file info
            $archive = new \SplFileInfo($this->getDeployDir($containerNode) . DIRECTORY_SEPARATOR . $fileName);

            // un-flag the archiv => un-deploy it with the next restart
            $extractor->unflagArchive($archive);
        }
    }
public function undeploy ( ContainerConfigurationInterface $ containerNode , $ uuid ) { // try to load the app node with the passe UUID if ( $ appNode = $ this -> load ( $ uuid ) ) { // prepare file name $ extractor = $ this -> getExtractor ( ) ; $ fileName = $ appNode -> getName ( ) . $ extractor -> getExtensionSuffix ( ) ; // load the file info $ archive = new \ SplFileInfo ( $ this -> getDeployDir ( $ containerNode ) . DIRECTORY_SEPARATOR . $ fileName ) ; // un-flag the archiv => un-deploy it with the next restart $ extractor -> unflagArchive ( $ archive ) ; } }
Removes the .deployed flag file from the deploy folder, therefore the
app will be undeployed with the next restart.

@param \AppserverIo\Psr\ApplicationServer\Configuration\ContainerConfigurationInterface $containerNode The container the app is bound to
@param string                                                                           $uuid          UUID of the application to delete

@return void
@todo Add functionality to delete the deployed app
Removes the . deployed flag file from the deploy folder therefore the app will be undeployed with the next restart .