src/Robo/Commands/Generate/ConfigSplitCommand.php
protected function createSplitDir($split) {
    $split_dir = $this->configSplitDir . '/' . strtolower($split);
    $result = $this->taskFilesystemStack()
      ->mkdir($split_dir)
      ->run();
    if (!$result->wasSuccessful()) {
      throw new BltException("Unable to create $split_dir.");
    }
    if (!file_exists($split_dir . '/README.md')) {
      $readme = $this->twig->render('README.md.twig', [
        'name' => $split,
      ]);
      file_put_contents($split_dir . '/README.md', $readme);
    }
  }
protected function createSplitDir($split) {
    $split_dir = $this->configSplitDir . '/' . strtolower($split);
    $result = $this->taskFilesystemStack()
      ->mkdir($split_dir)
      ->run();
    if (!$result->wasSuccessful()) {
      throw new BltException("Unable to create $split_dir.");
    }
    if (!file_exists($split_dir . '/README.md')) {
      $readme = $this->twig->render('README.md.twig', [
        'name' => $split,
      ]);
      file_put_contents($split_dir . '/README.md', $readme);
    }
  }
protected function createSplitDir ( $ split ) { $ split_dir = $ this -> configSplitDir . '/' . strtolower ( $ split ) ; $ result = $ this -> taskFilesystemStack ( ) -> mkdir ( $ split_dir ) -> run ( ) ; if ( ! $ result -> wasSuccessful ( ) ) { throw new BltException ( "Unable to create $split_dir." ) ; } if ( ! file_exists ( $ split_dir . '/README.md' ) ) { $ readme = $ this -> twig -> render ( 'README.md.twig' , [ 'name' => $ split , ] ) ; file_put_contents ( $ split_dir . '/README.md' , $ readme ) ; } }
Creates the config directory for the given config_split.

@param string $split
The name of the split.
Creates the config directory for the given config_split .