mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-06 03:15:34 +01:00
Create .tmux
files
If `experimental.createTmuxStartupFile` is set in `build.yaml`.
This commit is contained in:
parent
8818baed58
commit
09da2bc403
4 changed files with 42 additions and 0 deletions
|
@ -146,6 +146,13 @@ final class CreateListOfFilesToGenerate
|
|||
break;
|
||||
}
|
||||
|
||||
if (Arr::get($configurationData, 'experimental.createTmuxStartupFile') === true) {
|
||||
$filesToGenerate[] = new TemplateFile(
|
||||
data: 'common/.tmux',
|
||||
name: '.tmux',
|
||||
);
|
||||
}
|
||||
|
||||
$filesToGenerate[] = new TemplateFile(
|
||||
data: 'common/.githooks/prepare-commit-msg',
|
||||
name: 'prepare-commit-msg',
|
||||
|
|
|
@ -59,6 +59,10 @@ final class GenerateConfigurationFiles
|
|||
$this->filesystem->chmod("{$this->outputDir}/.githooks/prepare-commit-msg", 0755);
|
||||
}
|
||||
|
||||
if ($this->filesystem->exists("{$this->outputDir}/.tmux")) {
|
||||
$this->filesystem->chmod("{$this->outputDir}/.tmux", 0755);
|
||||
}
|
||||
|
||||
if ($this->filesystem->exists("{$this->outputDir}/run")) {
|
||||
$this->filesystem->chmod("{$this->outputDir}/run", 0755);
|
||||
}
|
||||
|
|
|
@ -116,6 +116,10 @@ final class ConfigDto
|
|||
new Assert\Type('bool'),
|
||||
]),
|
||||
|
||||
'createTmuxStartupFile' => new Assert\Optional([
|
||||
new Assert\Type('bool'),
|
||||
]),
|
||||
|
||||
'runGitHooksBeforePush' => new Assert\Optional([
|
||||
new Assert\Type('bool'),
|
||||
]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue