PhpBrew\CommandBuilder::setAppendLog PHP Méthode

setAppendLog() public méthode

public setAppendLog ( $append = true )
    public function setAppendLog($append = true)
    {
        $this->append = $append;
    }

Usage Example

Exemple #1
0
 public function install(Build $build)
 {
     $this->info('Installing...');
     if ($this->options->sudo) {
         $cmd = new CommandBuilder('sudo make install');
         if (!$this->options->dryrun) {
             $code = $cmd->passthru($lastline);
             if ($code !== 0) {
                 throw new SystemCommandException("Install failed: {$lastline}", $build, $build->getBuildLogPath());
             }
         }
     } else {
         $cmd = new CommandBuilder('make install');
         $cmd->setAppendLog(true);
         $cmd->setLogPath($build->getBuildLogPath());
         $cmd->setStdout($this->options->{'stdout'});
         if (!$this->options->dryrun) {
             $code = $cmd->execute($lastline);
             if ($code !== 0) {
                 throw new SystemCommandException("Install failed: {$lastline}", $build, $build->getBuildLogPath());
             }
         }
     }
     $build->setState(Build::STATE_INSTALL);
 }
All Usage Examples Of PhpBrew\CommandBuilder::setAppendLog