/** * Return's servers name * * @return string */ public function getName() { return $this->node->getName(); }
/** * Adds the .dodeploy flag file in the deploy folder, therefore the * app will be deployed with the next restart. * * @param \TechDivision\Configuration\Interfaces\NodeInterface $appNode The application node object * * @return void */ public function deploy(NodeInterface $appNode) { // prepare file name $fileName = $appNode->getName() . PharExtractor::EXTENSION_SUFFIX; // load the file info $archive = new \SplFileInfo($this->getDeployDir() . DIRECTORY_SEPARATOR . $fileName); // flag the archiv => deploy it with the next restart $extractor = new PharExtractor($this->getInitialContext()); $extractor->flagArchive($archive, ExtractorInterface::FLAG_DODEPLOY); }