src/Robo/Inspector/Inspector.php
public function isDrupalVmConfigValid() {
    $valid = TRUE;
    $status = $this->getDrupalVmStatus();
    $machine_name = $this->getConfigValue('project.machine_name');
    if (empty($status[$machine_name]['state'])) {
      $this->logger->error("Could not find VM. Please ensure that the VM machine name matches project.machine_name");
      $valid = FALSE;
    }
    else {
      if ($status[$machine_name]['state'] == 'not_created') {
        $this->logger->error("Drupal VM config has been initialized, but the VM has not been created. Please re-run `blt vm`.");
        $valid = FALSE;
      }
    }

    $file_path = $this->getConfigValue('vm.config');
    if (!file_exists($file_path)) {
      $this->logger->error("$file_path is missing. Please re-run `blt vm`.");
      $valid = FALSE;
    }

    return $valid;
  }
public function isDrupalVmConfigValid() {
    $valid = TRUE;
    $status = $this->getDrupalVmStatus();
    $machine_name = $this->getConfigValue('project.machine_name');
    if (empty($status[$machine_name]['state'])) {
      $this->logger->error("Could not find VM. Please ensure that the VM machine name matches project.machine_name");
      $valid = FALSE;
    }
    else {
      if ($status[$machine_name]['state'] == 'not_created') {
        $this->logger->error("Drupal VM config has been initialized, but the VM has not been created. Please re-run `blt vm`.");
        $valid = FALSE;
      }
    }

    $file_path = $this->getConfigValue('vm.config');
    if (!file_exists($file_path)) {
      $this->logger->error("$file_path is missing. Please re-run `blt vm`.");
      $valid = FALSE;
    }

    return $valid;
  }
public function isDrupalVmConfigValid ( ) { $ valid = TRUE ; $ status = $ this -> getDrupalVmStatus ( ) ; $ machine_name = $ this -> getConfigValue ( 'project.machine_name' ) ; if ( empty ( $ status [ $ machine_name ] [ 'state' ] ) ) { $ this -> logger -> error ( "Could not find VM. Please ensure that the VM machine name matches project.machine_name" ) ; $ valid = FALSE ; } else { if ( $ status [ $ machine_name ] [ 'state' ] == 'not_created' ) { $ this -> logger -> error ( "Drupal VM config has been initialized, but the VM has not been created. Please re-run `blt vm`." ) ; $ valid = FALSE ; } } $ file_path = $ this -> getConfigValue ( 'vm.config' ) ; if ( ! file_exists ( $ file_path ) ) { $ this -> logger -> error ( "$file_path is missing. Please re-run `blt vm`." ) ; $ valid = FALSE ; } return $ valid ; }
Determines if Drupal VM config is valid.

@return bool
TRUE is Drupal VM config is valid.
Determines if Drupal VM config is valid .