public function printSummary() {
    drush_print();

    // Print env files used for this definition.
    drush_print($this->formatHeading('Environment Definitions Found'));
    foreach ($this->loadedEnvs as $filename) {
      drush_print("{$filename}", 1);
    }

    drush_print();
    drush_print($this->formatHeading(dt("CONFIGURATION SUMMARY")));

    // We want to make sure they are printed in the same order as they will run.
    foreach ($this->getActiveDefinition() as $group => $options) {
      // Print a nice heading.
      $heading = $this->formatHeading($group);

      switch (strtolower($group)) {
        case 'modules':
          $this->printModuleSummary($options, $heading);
          break;

        case 'variables':
          $this->printVariableSummary($options, $heading);
          break;

        case 'permissions':
          $this->printPermissionSummary($options, $heading);
          break;

        case 'commands':
          $this->printCommandSummary($options, $heading);
          break;

        default:
          drush_print($this->formatHeading($group));
          drush_log(dt("I'm not sure what to do with '@group'.", ['@group' => $group]), 'warning');
          break;
      }
    }
  }
public function printSummary() {
    drush_print();

    // Print env files used for this definition.
    drush_print($this->formatHeading('Environment Definitions Found'));
    foreach ($this->loadedEnvs as $filename) {
      drush_print("{$filename}", 1);
    }

    drush_print();
    drush_print($this->formatHeading(dt("CONFIGURATION SUMMARY")));

    // We want to make sure they are printed in the same order as they will run.
    foreach ($this->getActiveDefinition() as $group => $options) {
      // Print a nice heading.
      $heading = $this->formatHeading($group);

      switch (strtolower($group)) {
        case 'modules':
          $this->printModuleSummary($options, $heading);
          break;

        case 'variables':
          $this->printVariableSummary($options, $heading);
          break;

        case 'permissions':
          $this->printPermissionSummary($options, $heading);
          break;

        case 'commands':
          $this->printCommandSummary($options, $heading);
          break;

        default:
          drush_print($this->formatHeading($group));
          drush_log(dt("I'm not sure what to do with '@group'.", ['@group' => $group]), 'warning');
          break;
      }
    }
  }
public function printSummary ( ) { drush_print ( ) ; // Print env files used for this definition. drush_print ( $ this -> formatHeading ( 'Environment Definitions Found' ) ) ; foreach ( $ this -> loadedEnvs as $ filename ) { drush_print ( "{$filename}" , 1 ) ; } drush_print ( ) ; drush_print ( $ this -> formatHeading ( dt ( "CONFIGURATION SUMMARY" ) ) ) ; // We want to make sure they are printed in the same order as they will run. foreach ( $ this -> getActiveDefinition ( ) as $ group => $ options ) { // Print a nice heading. $ heading = $ this -> formatHeading ( $ group ) ; switch ( strtolower ( $ group ) ) { case 'modules' : $ this -> printModuleSummary ( $ options , $ heading ) ; break ; case 'variables' : $ this -> printVariableSummary ( $ options , $ heading ) ; break ; case 'permissions' : $ this -> printPermissionSummary ( $ options , $ heading ) ; break ; case 'commands' : $ this -> printCommandSummary ( $ options , $ heading ) ; break ; default : drush_print ( $ this -> formatHeading ( $ group ) ) ; drush_log ( dt ( "I'm not sure what to do with '@group'." , [ '@group' => $ group ] ) , 'warning' ) ; break ; } } }
Print a summary of the environment definitions.
Print a summary of the environment definitions .