protected function postSymlinkTask($worker, AbstractAuth $auth, $remote)
    {
        if (isset($remote['postsymlink_filechecks']) && $remote['postsymlink_filechecks']) {
            $projectRoot = $remote['rootdir'];
            $collection = $this->collectionBuilder();
            $collection->taskSsh($worker, $auth)
                ->remoteDirectory($projectRoot, true)
                ->timeout($this->getTimeoutSetting('postsymlink_filechecks'));
            foreach ($remote['postsymlink_filechecks'] as $file) {
                // If this command fails, the collection will fail, which will
                // trigger a rollback.
                $builder = CommandBuilder::create('ls')
                    ->addArgument($file)
                    ->pipeOutputTo('grep')
                    ->addArgument($file)
                    ->onFailure(
                        CommandBuilder::create('echo')
                            ->addArgument('[ERROR] ' . $file . ' was not found.')
                            ->onFinished('exit')
                            ->addArgument('1')
                    );
                $collection->exec((string) $builder);
            }
            return $collection;
        }
        return false;
    }
protected function postSymlinkTask($worker, AbstractAuth $auth, $remote)
    {
        if (isset($remote['postsymlink_filechecks']) && $remote['postsymlink_filechecks']) {
            $projectRoot = $remote['rootdir'];
            $collection = $this->collectionBuilder();
            $collection->taskSsh($worker, $auth)
                ->remoteDirectory($projectRoot, true)
                ->timeout($this->getTimeoutSetting('postsymlink_filechecks'));
            foreach ($remote['postsymlink_filechecks'] as $file) {
                // If this command fails, the collection will fail, which will
                // trigger a rollback.
                $builder = CommandBuilder::create('ls')
                    ->addArgument($file)
                    ->pipeOutputTo('grep')
                    ->addArgument($file)
                    ->onFailure(
                        CommandBuilder::create('echo')
                            ->addArgument('[ERROR] ' . $file . ' was not found.')
                            ->onFinished('exit')
                            ->addArgument('1')
                    );
                $collection->exec((string) $builder);
            }
            return $collection;
        }
        return false;
    }
protected function postSymlinkTask ( $ worker , AbstractAuth $ auth , $ remote ) { if ( isset ( $ remote [ 'postsymlink_filechecks' ] ) && $ remote [ 'postsymlink_filechecks' ] ) { $ projectRoot = $ remote [ 'rootdir' ] ; $ collection = $ this -> collectionBuilder ( ) ; $ collection -> taskSsh ( $ worker , $ auth ) -> remoteDirectory ( $ projectRoot , true ) -> timeout ( $ this -> getTimeoutSetting ( 'postsymlink_filechecks' ) ) ; foreach ( $ remote [ 'postsymlink_filechecks' ] as $ file ) { // If this command fails, the collection will fail, which will // trigger a rollback. $ builder = CommandBuilder :: create ( 'ls' ) -> addArgument ( $ file ) -> pipeOutputTo ( 'grep' ) -> addArgument ( $ file ) -> onFailure ( CommandBuilder :: create ( 'echo' ) -> addArgument ( '[ERROR] ' . $ file . ' was not found.' ) -> onFinished ( 'exit' ) -> addArgument ( '1' ) ) ; $ collection -> exec ( ( string ) $ builder ) ; } return $ collection ; } return false ; }
Tasks to execute after creating the symlinks.

@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 bool|\Robo\Contract\TaskInterface
The postsymlink task, false if no post symlink tasks need to run.
Tasks to execute after creating the symlinks .