src/Robo/Commands/Vm/VmCommand.php
protected function localInitialize() {
    if (!$this->getInspector()->isBltLocalConfigFilePresent()) {
      $this->invokeCommands(['blt:init:settings']);
    }

    $filename = $this->getConfigValue('blt.config-files.local');
    $this->logger->info("Updating $filename");

    $contents = Yaml::parse(file_get_contents($filename));
    $contents['vm']['enable'] = TRUE;
    $yaml = Yaml::dump($contents, 3, 2);
    file_put_contents($filename, $yaml);

    $this->say("<comment>$filename</comment> was modified.");
  }
protected function localInitialize() {
    if (!$this->getInspector()->isBltLocalConfigFilePresent()) {
      $this->invokeCommands(['blt:init:settings']);
    }

    $filename = $this->getConfigValue('blt.config-files.local');
    $this->logger->info("Updating $filename");

    $contents = Yaml::parse(file_get_contents($filename));
    $contents['vm']['enable'] = TRUE;
    $yaml = Yaml::dump($contents, 3, 2);
    file_put_contents($filename, $yaml);

    $this->say("<comment>$filename</comment> was modified.");
  }
protected function localInitialize ( ) { if ( ! $ this -> getInspector ( ) -> isBltLocalConfigFilePresent ( ) ) { $ this -> invokeCommands ( [ 'blt:init:settings' ] ) ; } $ filename = $ this -> getConfigValue ( 'blt.config-files.local' ) ; $ this -> logger -> info ( "Updating $filename" ) ; $ contents = Yaml :: parse ( file_get_contents ( $ filename ) ) ; $ contents [ 'vm' ] [ 'enable' ] = TRUE ; $ yaml = Yaml :: dump ( $ contents , 3 , 2 ) ; file_put_contents ( $ filename , $ yaml ) ; $ this -> say ( "<comment>$filename</comment> was modified." ) ; }
Configures local machine to use Drupal VM as default env for BLT commands.
Configures local machine to use Drupal VM as default env for BLT commands .