Пример #1
0
 /**
  * @param array $step
  * @param string $stepName
  * @throws Exception
  * @return void
  */
 protected function runVolume(array $step, $stepName)
 {
     if (!$this->runStage($step['volume'], $stepName, 'volume check')) {
         $this->rollback($step['data'], $stepName);
         if ($this->configReader->getStep('delta', $stepName)) {
             $this->logger->warning('Volume Check failed');
         } else {
             throw new Exception('Volume Check failed');
         }
     }
 }