Open bomberstudios opened 14 years ago
That's a really nice idea.
I'm wondering if this could help get around issue #5 by using something like dtach to control a commands background process (to explicitly stop/start daemons). For the sake of making it backwards compatible maybe project could assume that project name
has the current yaml configuration but project name subcommand
will try to look for the subcommand
key within the workflow.
http://trollop.rubyforge.org/ will work nicely.
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:
then running
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 toproject myproject start
)I may have a go at it, but I make no promises... : )