Exemplo n.º 1
0
 /**
  * Add the 'rm' command to remove the uncrypted file.
  *
  * @param \phpbu\App\Cli\Process $process
  */
 protected function addDeleteCommand(Process $process)
 {
     if ($this->deleteUncrypted) {
         $cmd = new Cmd('rm');
         if (!$this->showStdErr) {
             $cmd->silence();
             // i kill you
         }
         $cmd->addArgument($this->sourceFile);
         $process->addCommand($cmd);
     }
 }
Exemplo n.º 2
0
 /**
  * Return 'rm' command.
  *
  * @return \phpbu\App\Cli\Cmd
  */
 protected function getRmCommand()
 {
     $rm = new Cmd('rm');
     $rm->addOption('-rf', $this->path, ' ');
     if (!$this->showStdErr) {
         $rm->silence();
     }
     return $rm;
 }