Open Data Catalog v2.0.0
Drupal\dkan_harvest\Drush\Commands Class Reference
Inheritance diagram for Drupal\dkan_harvest\Drush\Commands:

Public Member Functions

 __construct ()
 
 index ()
 
 register ($harvest_plan)
 
 deregister ($id)
 
 run ($id)
 
 runAll ()
 
 info ($id, $run_id=NULL)
 
 revert ($id)
 

Protected Attributes

 $harvestFactory
 
 $harvestService
 
 $logger
 

Detailed Description

Class.

@codeCoverageIgnore

Definition at line 15 of file Commands.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\dkan_harvest\Drush\Commands::__construct ( )

Commands constructor.

Definition at line 42 of file Commands.php.

Member Function Documentation

◆ deregister()

Drupal\dkan_harvest\Drush\Commands::deregister (   $id)

Deregister a harvest.

@command dkan-harvest:deregister

Definition at line 90 of file Commands.php.

◆ index()

Drupal\dkan_harvest\Drush\Commands::index ( )

Lists available harvests.

@command dkan-harvest:list

@usage dkan-harvest:list List available harvests.

Definition at line 56 of file Commands.php.

◆ info()

Drupal\dkan_harvest\Drush\Commands::info (   $id,
  $run_id = NULL 
)

Gives information about a previous harvest run.

Parameters
string$idThe harvest id.
string$run_idThe run's id.

@command dkan-harvest:info

Definition at line 149 of file Commands.php.

◆ register()

Drupal\dkan_harvest\Drush\Commands::register (   $harvest_plan)

Register a new harvest.

@command dkan-harvest:register

Definition at line 72 of file Commands.php.

◆ revert()

Drupal\dkan_harvest\Drush\Commands::revert (   $id)

Reverts harvest.

Parameters
string$idThe source to revert.

@command dkan-harvest:revert

@usage dkan-harvest:revert Removes harvested entities.

Definition at line 181 of file Commands.php.

◆ run()

Drupal\dkan_harvest\Drush\Commands::run (   $id)

Runs harvest.

Parameters
string$idThe harvest id.

@command dkan-harvest:run

@usage dkan-harvest:run Runs a harvest.

Definition at line 114 of file Commands.php.

◆ runAll()

Drupal\dkan_harvest\Drush\Commands::runAll ( )

Runs all pending harvests.

@command dkan-harvest:run-all

@usage dkan-harvest:run-all Runs all pending harvests.

Definition at line 129 of file Commands.php.

Member Data Documentation

◆ $harvestFactory

Drupal\dkan_harvest\Drush\Commands::$harvestFactory
protected

Definition at line 23 of file Commands.php.

◆ $harvestService

Drupal\dkan_harvest\Drush\Commands::$harvestService
protected

Definition at line 30 of file Commands.php.

◆ $logger

Drupal\dkan_harvest\Drush\Commands::$logger
protected

Definition at line 37 of file Commands.php.