The SitePoint PHP blog has posted part two of their series looking at using Phake for automation in your applications. In this second part they take some of the basics they shared in part one and apply them in some more practical examples.
In part one, we covered the basics of Phake and demonstrated ways of executing tasks with it, covering groups, dependencies, and arguments. In this part, we'll look at some sample real world applications of Phake. Note that the following examples are largely based on things that I usually do manually that need some sort of automation.
He includes three different task examples, each with the code to make them happen (and descriptions of what it's doing):
- Uploading Files to Server with a Phake task
- Seeding the Database
- Syncing Data
You can find out more about Phake on the project's GitHub page (including grouping, aborting and describing tasks).