Thanks for writing up this great article on Drush Rebuild. Scripting in php is a powerful way to customize your development site after sql-sync. There is an example in the Drush-5 examples folder to show how to automatically enable and disable modules post-sync; see:
It is not necessary to use a post-sync hook, of course; it is perfectly valid to make a wrapper script such as you have done to roll all of the operations together, and it is, in fact, probably easier to understand the way you have done it. Looks good.
Thanks for writing up this great article on Drush Rebuild. Scripting in php is a powerful way to customize your development site after sql-sync. There is an example in the Drush-5 examples folder to show how to automatically enable and disable modules post-sync; see:
http://drupalcode.org/project/drush.git/blob/HEAD:/examples/sync_enable....
It is not necessary to use a post-sync hook, of course; it is perfectly valid to make a wrapper script such as you have done to roll all of the operations together, and it is, in fact, probably easier to understand the way you have done it. Looks good.