Ejemplo n.º 1
0
 public function getFacterData()
 {
     if ($this->facterData === null) {
         $facter = ExecResult::createFromCommand("facter --json");
         if (!$facter->isSuccess()) {
             throw new FacterFailed();
         }
         $this->facterData = json_decode(implode("\n", $facter->getOutput()), true);
     }
     return $this->facterData;
 }
Ejemplo n.º 2
0
 public function remove($name)
 {
     return ExecResult::createFromCommand('pw userdel ' . escapeshellarg($name) . ' 2>&1');
 }
Ejemplo n.º 3
0
 public function remove($package)
 {
     return ExecResult::createFromCommand('pkg remove -y ' . escapeshellarg($package) . ' 2>&1');
 }
Ejemplo n.º 4
0
 public function reload($name)
 {
     return ExecResult::createFromCommand('sv reload ' . escapeshellarg($name) . ' 2>&1');
 }