Acknowledgements
Preface
- Who is this book for?
- Assumptions
- Icons used in the book
- Setup & Environment
- Using
Filefiles
1Introduction
2First experiments
- 2.1A task to solve
- 2.2A general setup for projects
- 2.3The first HTML generator
3Rake
- 3.1An overview
- 3.2The simple text transformation as a
Raketask
4Guard
- 4.1
Guardinstallation - 4.2Running
Guard– having aGuardfile& a plug-in - 4.3Example
Guardusage
5Combining Rake and Guard
- 5.1The
directorytask - 5.2
Rake’sFileList - 5.3A task dependency
- 5.4A
ruleto describe how to generate the HTML files
6Rake details
- 6.1How
Rakefinds theRakefilein a directory hierarchy - 6.2Name spaces
- 6.3Task Names
- 6.4Task bodies and code blocks
- 6.5Task dependencies
- 6.6Task parameters
- 6.7Rake troubles
7Guard details
- 7.1The
GuardfileDSL - 7.2A selection of plug-ins
8Testing Rake tasks – overview
- 8.1You don’t test them
- 8.2Non-Automated Testing
- 8.3Cucumber
- 8.4MiniTest or RSpec + Refactored Rake Tasks
- 8.5‘Redefine’ Rake Methods
- 8.6Some General Remarks
9Testing Rake tasks
- 9.1Legacy
Raketasks