function drush_replication_stop in Replication 8
Same name and namespace in other branches
- 8.2 replication.drush.inc \drush_replication_stop()
Implements drush_hook_COMMAND().
File
- ./
replication.drush.inc, line 228 - Drush integration for the replication module.
Code
function drush_replication_stop($source, $target) {
try {
$client = replication_client_factory();
$continuous = drush_get_option('continuous');
return $client
->replicate($source, $target, TRUE, $continuous);
} catch (\Exception $e) {
drush_set_error($e
->getMessage());
}
}