In chapter 8 of my book I introduce a fabric script as a way of automating the deployment of our example app. You can see the section where I do so here. After 7 chapters of building everything step-by-step with TDD and detailed unit tests, this fairly large script leaps out fully-formed, It prompted one of my readers to write in (Thanks Nick): It didn't work the first time I used it (I retype, ra