protected function pushPackageTask($worker, AbstractAuth $auth, $remote, $archivename = null)
    {
        $archive = is_null($archivename)
            ? $remote['time'] . '.tar.gz'
            : $archivename;
        $releaseDir = $remote['releasesdir'] . '/' . $remote['time'];
        $collection = $this->collectionBuilder();
        $collection->taskPushPackage($worker, $auth)
            ->destinationFolder($releaseDir)
            ->package($archive);

        $collection->taskSsh($worker, $auth)
            ->remoteDirectory($releaseDir, true)
            ->exec('chmod u+rx vendor/bin/robo');

        return $collection;
    }
protected function pushPackageTask($worker, AbstractAuth $auth, $remote, $archivename = null)
    {
        $archive = is_null($archivename)
            ? $remote['time'] . '.tar.gz'
            : $archivename;
        $releaseDir = $remote['releasesdir'] . '/' . $remote['time'];
        $collection = $this->collectionBuilder();
        $collection->taskPushPackage($worker, $auth)
            ->destinationFolder($releaseDir)
            ->package($archive);

        $collection->taskSsh($worker, $auth)
            ->remoteDirectory($releaseDir, true)
            ->exec('chmod u+rx vendor/bin/robo');

        return $collection;
    }
protected function pushPackageTask ( $ worker , AbstractAuth $ auth , $ remote , $ archivename = null ) { $ archive = is_null ( $ archivename ) ? $ remote [ 'time' ] . '.tar.gz' : $ archivename ; $ releaseDir = $ remote [ 'releasesdir' ] . '/' . $ remote [ 'time' ] ; $ collection = $ this -> collectionBuilder ( ) ; $ collection -> taskPushPackage ( $ worker , $ auth ) -> destinationFolder ( $ releaseDir ) -> package ( $ archive ) ; $ collection -> taskSsh ( $ worker , $ auth ) -> remoteDirectory ( $ releaseDir , true ) -> exec ( 'chmod u+rx vendor/bin/robo' ) ; return $ collection ; }
Push a package to 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.
@param string|null $archivename
The path to the package to push.

@return \Robo\Contract\TaskInterface
The push package task.
Push a package to the server .