-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ force template type regardless of individual template types. #165
- Loading branch information
Showing
14 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
docs/level-17-override-template-type-from-moban-file/.moban.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
configuration: | ||
template_dir: | ||
- template-sources | ||
force_template_type: copy | ||
targets: | ||
- simple.file.copy: file-in-template-sources-folder.txt | ||
- "misc-1-copying/can-create-folder/if-not-exists.txt": file-in-template-sources-folder.txt | ||
- "test-dir": dir-for-copying | ||
- "test-recursive-dir": dir-for-recusive-copying/** |
26 changes: 26 additions & 0 deletions
26
docs/level-17-override-template-type-from-moban-file/README.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Level 17: force template type | ||
================================================================================ | ||
|
||
Since moban version 0.4.0, you can enforce all targets to use one and only one | ||
template type, regardless of their individual template types. | ||
|
||
|
||
Here is example moban file for copying:: | ||
configuration: | ||
template_dir: | ||
- template-sources | ||
force_template_type: copy | ||
targets: | ||
- simple.file.copy: file-in-template-sources-folder.txt | ||
- "misc-1-copying/can-create-folder/if-not-exists.txt": file-in-template-sources-folder.txt | ||
- "test-dir": dir-for-copying | ||
- "test-recursive-dir": dir-for-recusive-copying/** | ||
|
||
More information is documented in `misc-1-copying-template`. | ||
|
||
|
||
template copy does: | ||
|
||
#. copies any template inside pre-declared template directory to anywhere. moban will create directory if needed. | ||
#. copies any directory to anywhere. If "**" is followed, moban attempts to do recursive copying. |
1 change: 1 addition & 0 deletions
1
...-17-override-template-type-from-moban-file/misc-1-copying/can-create-folder/if-not-exists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test file |
1 change: 1 addition & 0 deletions
1
...override-template-type-from-moban-file/misc-1-copying/can-create-folder/if-not-exists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test file |
1 change: 1 addition & 0 deletions
1
docs/level-17-override-template-type-from-moban-file/simple.file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test file |
1 change: 1 addition & 0 deletions
1
...evel-17-override-template-type-from-moban-file/template-sources/dir-for-copying/afile.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dir for copying |
1 change: 1 addition & 0 deletions
1
...plate-sources/dir-for-copying/sub_directory_is_not_copied/becuase_star_star_is_needed.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Please look at .moban.yml |
1 change: 1 addition & 0 deletions
1
...verride-template-type-from-moban-file/template-sources/dir-for-recusive-copying/fileb.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
everything is copied |
1 change: 1 addition & 0 deletions
1
...urces/dir-for-recusive-copying/sub_directory_is_copied/because_star_star_is_specified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dest_directory: source_directory/** |
1 change: 1 addition & 0 deletions
1
...erride-template-type-from-moban-file/template-sources/file-in-template-sources-folder.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters