Buildout recipe to create files and directories
Project description
tranchitella.recipe.fs
This recipe creates files and directories in a buildout.
Usage
This recipe offers the following entry points:
mkdir
mkfile
mkdir
This is a minimal buildout.cfg which makes use of the mkdir recipe:
[buildout] parts = dirs [dirs] recipe = tranchitella.recipe.fs:mkdir paths = ${buildout:directory}/var ${buildout:directory}/var/lib ${buildout:directory}/var/tmp ${buildout:directory}/var/log
This will create the directories specified by the paths attribute.
mkfile
This is a minimal buildout.cfg which makes use of the mkfile recipe:
[buildout] parts = conffiles [conffiles] recipe = tranchitella.recipe.fs:mkfile template = ${buildout:directory}/templates/config path = ${buildout:directory}/etc/config mode = 0644 database = postgres
This will create the file specified by the path attribute using the given template; the file will be customized using string interpolations of the options specified in the buildout part (eg. %(database)s will be replaced with the string postgres).
0.2 (2010-03-07)
Added a new recipe entry point mkfile.
0.1 (2010-02-29)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for tranchitella.recipe.fs-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f3fefe8a6a4e182e251002d698fb2e120e906c204e2913892d47bcddd1249ec |
|
MD5 | fd22d8e042c40adfad2442b27147a9dc |
|
BLAKE2b-256 | 153032d56042328a6ecff07d6dc43e1d414b7f023f229771a62199d7143c454c |