This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// put in $aegirhome/.drush/siteswitch/ | |
// run with: drush @hostmaster siteswitch "regexp" "replacepattern" | |
// example: drush @hostmaster siteswitch "(.*)\.yourdomain\.com" "\$1.yournewdomain.com" | |
function siteswitch_drush_command() { | |
$commands = array(); | |
$commands['siteswitch'] = array( | |
'description' => dt('Run siteswitch'), |