code: function writeDeploymentConfigs(deployment) {
    const folderName = deployment[GENERATOR_NAME].deploymentType;
    checkPath(folderName);
    createFolderIfNeeded(folderName);
    writeConfigFile(deployment, path.join(folderName, '.yo-rc.json'));
  }
docs: This function writes a Yeoman config file in a folder.
  @param deployment the deployment.