예제 #1
0
 /**
  * Sets up the process and adds nessecary commands to the builder.
  *
  * @return void
  * @author Dan Cox
  */
 public function setup()
 {
     // Change directory
     parent::setCWD($this->params->directory);
     // Enable output
     parent::enableOutput();
     // Add the prefix
     parent::setPrefix('ls');
     // Add the list command
     parent::setArguments($this->params->arguments);
 }
예제 #2
0
 /**
  * Setup the process
  *
  * @return void
  * @author Dan Cox
  */
 public function setup()
 {
     if (is_null($this->params->directory)) {
         throw new Exceptions\RequiredArgumentException('directory');
     }
     parent::setCWD($this->params->directory);
     parent::disableOutput();
     if ($this->params->verbose) {
         parent::enableOutput();
     }
 }