Example #1
0
 /**
  * Run given stage
  * If stage healthcheck and healthcheck doesn't exists we run unpack stage
  * @inheritdoc
  */
 public function run($stage)
 {
     if ($stage == 'healthcheck' && (!file_exists($this->context['health_check_path']) || empty($this->state['stage']['unpack']) || $this->state['stage']['unpack'] == 'failed') && !$this->run('unpack')) {
         return false;
     }
     return parent::run($stage);
 }