protected function switchPreviousTask($worker, AbstractAuth $auth, $remote)
    {
        return $this->taskSsh($worker, $auth)
            ->remoteDirectory($this->getCurrentProjectRoot($worker, $auth, $remote), true)
            ->exec(
                'vendor/bin/robo digipolis:switch-previous '
                . $remote['releasesdir']
                . ' ' . $remote['currentdir']
            );
    }
protected function switchPreviousTask($worker, AbstractAuth $auth, $remote)
    {
        return $this->taskSsh($worker, $auth)
            ->remoteDirectory($this->getCurrentProjectRoot($worker, $auth, $remote), true)
            ->exec(
                'vendor/bin/robo digipolis:switch-previous '
                . $remote['releasesdir']
                . ' ' . $remote['currentdir']
            );
    }
protected function switchPreviousTask ( $ worker , AbstractAuth $ auth , $ remote ) { return $ this -> taskSsh ( $ worker , $ auth ) -> remoteDirectory ( $ this -> getCurrentProjectRoot ( $ worker , $ auth , $ remote ) , true ) -> exec ( 'vendor/bin/robo digipolis:switch-previous ' . $ remote [ 'releasesdir' ] . ' ' . $ remote [ 'currentdir' ] ) ; }
Switch the current symlink to the previous release on the server.

@param string $worker
The server to install the site on.
@param \DigipolisGent\Robo\Task\Deploy\Ssh\Auth\AbstractAuth $auth
The ssh authentication to connect to the server.
@param array $remote
The remote settings for this server.

@return \Robo\Contract\TaskInterface
The switch previous task.
Switch the current symlink to the previous release on the server .