Ejemplo n.º 1
0
 /**
  * Executes this task
  *
  * @param \TYPO3\Surf\Domain\Model\Node $node
  * @param \TYPO3\Surf\Domain\Model\Application $application
  * @param \TYPO3\Surf\Domain\Model\Deployment $deployment
  * @param array $options
  * @return void
  * @throws InvalidConfigurationException
  * @throws TaskExecutionException
  */
 public function execute(Node $node, Application $application, Deployment $deployment, array $options = array())
 {
     // Sync files
     $this->rsyncService->sync($deployment->getNode('localhost'), $deployment->getWorkspacePath($application), $node, $deployment->getApplicationReleasePath($application), $deployment, $options);
 }
Ejemplo n.º 2
0
 /**
  * @param Node $sourceNode 
  * @param string $sourcePath 
  * @param Node $targetNode 
  * @param string $targetPath 
  * @param Deployment $deployment 
  * @param array $options 
  * @return void
  */
 protected function sync(Node $sourceNode, $sourcePath, Node $targetNode, $targetPath, Deployment $deployment, array $options = array())
 {
     $this->rsyncService->sync($sourceNode, $sourcePath, $targetNode, $targetPath, $deployment, $options);
 }