コード例 #1
0
 /**
  * Copies the latest version server-side to the uploaddir,
  * in case this is a incremental deploy.
  *
  * @param \Webcreate\Conveyor\Context $context
  */
 protected function prepareUploadPath($context)
 {
     $basepath = $this->transporter->getPath();
     $uploadPath = $basepath . '/' . $this->getUploadPath($context->getVersion());
     $currentReleasePath = $basepath . '/' . $this->getCurrentReleasePath() . '/';
     if (false === $context->isFullDeploy()) {
         // add some white space to the output
         $this->io->write('');
         $this->transporter->copy($currentReleasePath, $uploadPath);
     }
 }
コード例 #2
0
 public function testCopyDispatchesEvent()
 {
     $this->getDispatcherMock()->expects($this->once())->method('dispatch')->with(TransporterEvents::TRANSPORTER_COPY, $this->anything());
     $this->transporter->copy($this->transporter->getPath() . '/a/path', $this->transporter->getPath() . '/deploy');
 }