protected function initRemoteTask($worker, AbstractAuth $auth, $remote, $extra = [], $force = false)
    {
        $collection = $this->collectionBuilder();
        if (!$this->isSiteInstalled($worker, $auth, $remote) || $force) {
            $this->say($force ? 'Forcing site install.' : 'Site status failed.');
            $this->say('Triggering install script.');

            $collection->addTask($this->installTask($worker, $auth, $remote, $extra, $force));
            return $collection;
        }
        $collection->addTask($this->updateTask($worker, $auth, $remote, $extra));
        return $collection;
    }
protected function initRemoteTask($worker, AbstractAuth $auth, $remote, $extra = [], $force = false)
    {
        $collection = $this->collectionBuilder();
        if (!$this->isSiteInstalled($worker, $auth, $remote) || $force) {
            $this->say($force ? 'Forcing site install.' : 'Site status failed.');
            $this->say('Triggering install script.');

            $collection->addTask($this->installTask($worker, $auth, $remote, $extra, $force));
            return $collection;
        }
        $collection->addTask($this->updateTask($worker, $auth, $remote, $extra));
        return $collection;
    }
protected function initRemoteTask ( $ worker , AbstractAuth $ auth , $ remote , $ extra = [ ] , $ force = false ) { $ collection = $ this -> collectionBuilder ( ) ; if ( ! $ this -> isSiteInstalled ( $ worker , $ auth , $ remote ) || $ force ) { $ this -> say ( $ force ? 'Forcing site install.' : 'Site status failed.' ) ; $ this -> say ( 'Triggering install script.' ) ; $ collection -> addTask ( $ this -> installTask ( $ worker , $ auth , $ remote , $ extra , $ force ) ) ; return $ collection ; } $ collection -> addTask ( $ this -> updateTask ( $ worker , $ auth , $ remote , $ extra ) ) ; return $ collection ; }
Install or update a remote site.

@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.
@param array $extra
Extra parameters to pass to site install.
@param bool $force
Whether or not to force the install even when the site is present.

@return \Robo\Contract\TaskInterface
The init remote task.
Install or update a remote site .