drush_get_option(array('r', 'root'), drush_locate_root()))); // verify the site prior to migration drush_backend_invoke('provision verify', array($site)); } function drush_provision_pre_hostmaster_migrate($site, $platform) { drush_backend_invoke('hostmaster park', array($site, 'uri' => $site)); } function drush_provision_hostmaster_migrate($site, $platform) { drush_backend_invoke('provision clone', array($site, $site, $platform)); } function drush_provision_hostmaster_migrate_rollback($site, $platform) { drush_backend_invoke('provision delete ', array($site, 'root' => $platform)); } function drush_provision_post_hostmaster_migrate($site, $platform) { drush_backend_invoke('hostmaster unpark', array($site, 'uri' => $site, 'root' => $platform)); if (!drush_get_error()) { drush_backend_invoke('provision delete', array($site)); drush_backend_invoke('provision verify', array($site, 'root' => $platform, 'publish_path' => $platform)); } }