public function toTar()
    {
        $process = new Process('/usr/bin/env tar c .', $this->directory);
        $process->run();

        if (!$process->isSuccessful()) {
            throw new ProcessFailedException($process);
        }

        return $process->getOutput();
    }
public function toTar()
    {
        $process = new Process('/usr/bin/env tar c .', $this->directory);
        $process->run();

        if (!$process->isSuccessful()) {
            throw new ProcessFailedException($process);
        }

        return $process->getOutput();
    }
public function toTar ( ) { $ process = new Process ( '/usr/bin/env tar c .' , $ this -> directory ) ; $ process -> run ( ) ; if ( ! $ process -> isSuccessful ( ) ) { throw new ProcessFailedException ( $ process ) ; } return $ process -> getOutput ( ) ; }
Return the context as a tar archive.

@throws \Symfony\Component\Process\Exception\ProcessFailedException

@return string Tar content
Return the context as a tar archive .