Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#62 with current restriction on template type as key. What will happen if template type as group key is unknown, atm it will be treated as jinja2 template type
- Loading branch information
Showing
13 changed files
with
98 additions
and
23 deletions.
There are no files selected for viewing
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 | ||
targets: | ||
- copy: | ||
- 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-16-group-targets-using-template-type/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 16: group targets by their template type | ||
================================================================================ | ||
|
||
Since moban version 0.4.0, you can group your targets with their template type. | ||
For example, with `copy` target, you can do the following things: | ||
|
||
|
||
Here is example moban file for copying:: | ||
configuration: | ||
template_dir: | ||
- template-sources | ||
targets: | ||
- copy: | ||
- 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
...l-16-group-targets-using-template-type/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-16-group-targets-using-template-type/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
...-16-group-targets-using-template-type/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
...16-group-targets-using-template-type/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
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