I have a somehow complex environment I need to run for my project (think Sphinx, delayed_job, etc...) and a nice addition for project would be to add project subcommands, so you can run stuff when starting a work session and stop stuff when finishing.
I.e, if I have this .project file:
:workflows:
:default:
:start:
- mate %path
- mysql_start # Start MySQL
- cd %path && rake ts:start #start Sphinx
- cd %path && rails server
:stop:
- mysql_stop # Stop MySQL
- cd %path && rake ts:stop #stop Sphinx
:projects:
:myproject:
:path: /path/to/project
:workflow: default
then running
$ project myproject start
would open TextMate, bring MySQL and Sphinx up, and start the Rails server, and
would stop MySQL and Sphinx.
(The 'start' command would be default, so project myproject
would be equivalent to project myproject start
)
I may have a go at it, but I make no promises... : )