Kook/Rook
News
- [2008-10-19] pyKook 0.0.1 released
- [2006-09-27] Kook 0.2.1 released
- [2006-09-24] Rook 0.2.0 released
- [2006-09-24] Kook 0.2.0 released
- [2006-01-19] 0.1.1 released
- [2006-01-17] 0.1.0 released
Introduction
| Fig: Cookbook format is YAML and it allows to contain PHP/Ruby code. |
|
Kook/Rook/pyKook are software build tool such as Make, Ant, SCons or Cook. Kook is implemented in PHP5, Rook is in Ruby, pyKook is in Python. Basic commands (copy, move, rename, mkdir, ...) are also implemented in PHP(Kook), Ruby(Rook), or Python(pyKook) and allow you to execute platform-depended command.
Kook/Rook/pyKook liken build process to cooking.
- Output is called as 'product'.
- Input file is called as 'ingredient'
- Optional input file is called as 'topping'
- Task is called as 'recipe'.
- Build file is called as 'cookbook'.
Kook/Rook generates products from ingredients according to recipes. You describe products, ingredients, and recipes in cookbook.
In Kook and Rook, cookbook's format is YAML which is much easier for human to read and write than XML. In addition, Kook and Rook allows you to embed PHP or Ruby code into cookbook directly. It means that you can get the advantage of 'declarative' with YAML and of 'procedural' with PHP/Ruby code.
Kook is implemented in PHP5 because exception is supported only in PHP5 and not supported in PHP4. You need to install PHP5 before using Kook.
Rook is a Ruby port of Kook. It works with Ruby 1.8 or later.
pyKook is a Python port of Kook. It works with Python 2.4 or later.
Download
- Download Kook from sourceforge
- Kook-0.2.1.tgz (2006-09-27 released)
- Download Rook from rubyforge
- Rook-0.2.0.gem (2006-09-24 released)
- Download pyKook from sourceforge
- Kook-0.0.1.tar.gz (2008-10-19 released)
- Kook-0.0.1-py2.6.egg (2008-10-19 released)
- Kook-0.0.1-py2.5.egg (2008-10-19 released)
Installation
- Kook
- Download Kook-X.X.X.tgz and just type
pear install Kook-X.X.X.tgzby root user. - Or copy 'bin/kook' and 'Kook/*.php' to proper directory manually.
- Download Kook-X.X.X.tgz and just type
- Rook
- Just type 'gem install -r rook' by root user.
- Or download rook_X.X.X.tar.bz2, extract it, and type 'sudo ruby setup.rb'.
- Or copy 'bin/rook' and 'lib/*' to proper directory manually.
- pyKook
- If you have installed easy_install command, just type 'sudo easy_install Kook'.
- Or download Kook-X.X.X.tar.bz2, extract it, and type 'sudo python setup.py install'.
- Or copy 'bin/rook' and 'lib/*' to proper directory manually.
Documents
- Kook
- Rook
- pyKook
License
- LGPL 2.1 (Kook, Rook)
- MIT License (pyKook)
Other
- Bug reports or request for enhancement are welcome.