src/Robo/Commands/Blt/UpdateCommand.php
protected function initializeBlt() {
    $this->updateRootProjectFiles();
    $this->taskExecStack()
      ->dir($this->getConfigValue("repo.root"))
      ->exec("composer drupal:scaffold")
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
      ->run();

    // Reinitialize configuration now that project files exist.
    $config_initializer = new ConfigInitializer($this->getConfigValue('repo.root'), $this->input());
    $new_config = $config_initializer->initialize();
    $this->getConfig()->import($new_config->export());

    $this->invokeCommand('blt:init:settings');
    $this->invokeCommand('recipes:blt:init:command');
    $this->invokeCommand('blt:init:shell-alias');
    if (DIRECTORY_SEPARATOR === '\\') {
      // On Windows, during composer create-project,
      // the wizard command fails when it reaches the interactive steps.
      // Until this is fixed, go with the defaults.
      // The user can run blt wizard any time later for changing defaults.
      $this->input()->setInteractive(FALSE);
    }
    if ($this->input()->isInteractive()) {
      $this->invokeCommand('wizard');
    }
  }
protected function initializeBlt() {
    $this->updateRootProjectFiles();
    $this->taskExecStack()
      ->dir($this->getConfigValue("repo.root"))
      ->exec("composer drupal:scaffold")
      ->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
      ->run();

    // Reinitialize configuration now that project files exist.
    $config_initializer = new ConfigInitializer($this->getConfigValue('repo.root'), $this->input());
    $new_config = $config_initializer->initialize();
    $this->getConfig()->import($new_config->export());

    $this->invokeCommand('blt:init:settings');
    $this->invokeCommand('recipes:blt:init:command');
    $this->invokeCommand('blt:init:shell-alias');
    if (DIRECTORY_SEPARATOR === '\\') {
      // On Windows, during composer create-project,
      // the wizard command fails when it reaches the interactive steps.
      // Until this is fixed, go with the defaults.
      // The user can run blt wizard any time later for changing defaults.
      $this->input()->setInteractive(FALSE);
    }
    if ($this->input()->isInteractive()) {
      $this->invokeCommand('wizard');
    }
  }
protected function initializeBlt ( ) { $ this -> updateRootProjectFiles ( ) ; $ this -> taskExecStack ( ) -> dir ( $ this -> getConfigValue ( "repo.root" ) ) -> exec ( "composer drupal:scaffold" ) -> setVerbosityThreshold ( VerbosityThresholdInterface :: VERBOSITY_VERBOSE ) -> run ( ) ; // Reinitialize configuration now that project files exist. $ config_initializer = new ConfigInitializer ( $ this -> getConfigValue ( 'repo.root' ) , $ this -> input ( ) ) ; $ new_config = $ config_initializer -> initialize ( ) ; $ this -> getConfig ( ) -> import ( $ new_config -> export ( ) ) ; $ this -> invokeCommand ( 'blt:init:settings' ) ; $ this -> invokeCommand ( 'recipes:blt:init:command' ) ; $ this -> invokeCommand ( 'blt:init:shell-alias' ) ; if ( DIRECTORY_SEPARATOR === '\\' ) { // On Windows, during composer create-project, // the wizard command fails when it reaches the interactive steps. // Until this is fixed, go with the defaults. // The user can run blt wizard any time later for changing defaults. $ this -> input ( ) -> setInteractive ( FALSE ) ; } if ( $ this -> input ( ) -> isInteractive ( ) ) { $ this -> invokeCommand ( 'wizard' ) ; } }
Creates initial BLT files in their default state.
Creates initial BLT files in their default state .