This repository was archived by the owner on Jun 26, 2019. It is now read-only.
forked from drush-ops/drush
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port batch commands to annotated. (drush-ops#2491)
* Port batch commands to annotated. * Try to fix batch error. * Forgot to add the annotated file.
- Loading branch information
Showing
3 changed files
with
36 additions
and
48 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
namespace Drush\Commands\core; | ||
|
||
use Drush\Commands\DrushCommands; | ||
|
||
class BatchCommands extends DrushCommands { | ||
|
||
/** | ||
* Process operations in the specified batch set. | ||
* | ||
* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
* | ||
* @command batch-process | ||
* @param $batch_id The batch id that will be processed. | ||
* @hidden | ||
* @bootstrap DRUSH_BOOTSTRAP_DRUPAL_LOGIN | ||
*/ | ||
public function process($batch_id) { | ||
drush_batch_command($batch_id); | ||
} | ||
|
||
/** | ||
* Perform update functions. | ||
* | ||
* @command updatedb-batch-process | ||
* @param $batch_id The batch id that will be processed. | ||
* @hidden | ||
* @bootstrap DRUSH_BOOTSTRAP_DRUPAL_FULL | ||
*/ | ||
public function updatedb_process($batch_id) { | ||
drush_include_engine('drupal', 'update'); | ||
_update_batch_command($id); | ||
} | ||
|
||
} |
This file contains 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