Core::arbitFrameworkCouchdbCliTool
Class arbitFrameworkCouchdbCliTool
CLI tool class, which handles admintrative tasks regarding the CouchDB backend. CLI tool class, which handles admintrative tasks regarding the CouchDB backend.
arbitFrameworkCliTool
|
--arbitFrameworkActionCliTool
|
--arbitFrameworkCouchdbCliTool
Author(s):
|
Version:
|
$Revision: 1656 $ |
|
License:
|
GPL |
Member Variables
|
protected array |
$actions
= array( 'export' => array( 'action' => 'exportBackup', 'description' => 'Export backups for the given projects', ),'import'=>array('action'=>'importBackup','description'=>'Import backup for the given project.',),'prime'=>array('action'=>'primeViews','description'=>'Prime all view caches in the database.',),)
Available actions.
Available actions.
Mapping of the CLI action identifiers to their action names, the array should be structured like:
array(
'action' => array(
'action' => (string) Method name in controller,
), ...
)
|
|
protected string |
$description
= "Arbit CouchDB management tool, able to perform different administrative actions, like priming the views and ex- and importing backups.\n\nThe available actions are:"
Short description of the purpose of the current CLI tool
Short description of the purpose of the current CLI tool |
|
protected string |
$name
= 'Arbit CouchDB management tool'
Name of CLI tool |
Inherited Member Variables
Method Summary
|
protected arbitController |
createController(
$request
, $options
)
Get controller |
|
protected void |
registerOptions(
)
Register options
Register a set of options, which are special for this CLI tool. left empty, if no additional options are required. |
Inherited Methods
|
From arbitFrameworkActionCliTool
|
|
protected bool |
arbitFrameworkActionCliTool::processDefaultOptions()
Process default options
Handle the default options. stop afterwards, and false if the execution may continue. |
|
protected void |
arbitFrameworkActionCliTool::registerDefaultOptions()
Register options
Register a set of options, which are special for this CLI tool. left empty, if no additional options are required. |
|
From arbitFrameworkCliTool
|
|
public void |
arbitFrameworkCliTool::__construct()
Create cli tool and configure basic in and out handling |
|
protected abstract arbitController |
arbitFrameworkCliTool::createController()
Get controller |
|
protected void |
arbitFrameworkCliTool::executeRequests()
Execute request for one project |
|
protected array |
arbitFrameworkCliTool::getNonCommonOptions()
Get non-common options
Get options declared by specific tool implementations, which are not the common options declared by the base tool. |
|
protected array |
arbitFrameworkCliTool::getOptions()
Get option values
Return an array with all option values, indexed by the long names of the options. |
|
protected string |
arbitFrameworkCliTool::getVersion()
Return the current version |
|
protected void |
arbitFrameworkCliTool::login()
Login user
Either login a default user, with full access to everything, or use the specified user to execute the request. |
|
protected bool |
arbitFrameworkCliTool::processDefaultOptions()
Process default options
Handle the default options. stop afterwards, and false if the execution may continue. |
|
protected bool |
arbitFrameworkCliTool::processOptions()
Process module options
Handle the module options. stop afterwards, and false if the execution may continue. |
|
protected void |
arbitFrameworkCliTool::registerDefaultOptions()
Register default options
Register a set of default options, each arbit CLI tool should always implement. |
|
protected void |
arbitFrameworkCliTool::registerOptions()
Register options
Register a set of options, which are special for this CLI tool. left empty, if no additional options are required. |
|
public void |
arbitFrameworkCliTool::run()
Run cli command |
Methods
createController
Get controller Get controller
Return controller to execute for the current command
Parameters:
Redefinition of:
registerOptions
void
registerOptions(
)
Register options
Register a set of options, which are special for this CLI tool. left empty, if no additional options are required. Register options
Register a set of options, which are special for this CLI tool. May be left empty, if no additional options are required.
Redefinition of:
|