/** * Updates the symlink for the current release * * @param Context $context */ protected function updateCurrentReleasePathSymlink(Context $context) { $basepath = $this->transporter->getPath(); // add some white space to the output $this->io->write(''); $this->transporter->symlink($basepath . '/' . $this->getUploadPath($context->getVersion()), $basepath . '/' . $this->getCurrentReleasePath()); }
public function testSymlinkDispatchesEvent() { $this->getDispatcherMock()->expects($this->once())->method('dispatch')->with(TransporterEvents::TRANSPORTER_SYMLINK, $this->anything()); $this->transporter->symlink($this->transporter->getPath() . '/a/path', $this->transporter->getPath() . '/deploy'); }