Example #1
0
 /**
  * @inheritdoc
  */
 public function run()
 {
     if (!empty($this->task) && $this->task instanceof AbstractCompositeTask) {
         $this->showTasks($this->task->tasks(), null);
     } else {
         $this->showTasks($this->command->config, null);
     }
     return true;
 }
Example #2
0
 public function init()
 {
     parent::init();
     if (empty($this->cwd)) {
         $this->cwd = $this->command->configReader->basePath;
     }
 }
Example #3
0
 public function init()
 {
     parent::init();
     if (empty($this->name)) {
         throw new \InvalidArgumentException('Empty lock name.');
     }
     if (empty($this->lockPath)) {
         $this->lockPath = sys_get_temp_dir();
     }
     $this->lockPath = $this->getAbsolutePath($this->lockPath);
 }