You are here

function drush_brightcove_sync_all in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 brightcove.drush.inc \drush_brightcove_sync_all()
  2. 3.x brightcove.drush.inc \drush_brightcove_sync_all()

Implements drush_hook_COMMAND().

1 string reference to 'drush_brightcove_sync_all'
brightcove_drush_command in ./brightcove.drush.inc
Implements hook_drush_command().

File

./brightcove.drush.inc, line 32
Contains custom Brightcove drush commands.

Code

function drush_brightcove_sync_all() {
  drush_print('Initiating Brightcove-to-Drupal sync...');
  BrightcoveUtil::runStatusQueues('sync', \Drupal::service('queue'));
  drush_backend_batch_process();
  drush_print('Sync complete.');
}