PHP Class Components_Release_Task_Base, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Afficher le fichier Open project: horde/horde

Méthodes publiques

Méthode Description
__construct ( Components_Release_Tasks $tasks, Components_Release_Notes $notes, Components_Output $output ) Constructor.
getName ( ) : string Get the name of this task.
run ( &$options ) : null Run the task.
setComponent ( Components_Component $component ) : null Set the component this task should act upon.
setName ( string $name ) : null Set the name of this task.
skip ( array $options ) : boolean Can the task be skipped?
validate ( array $options ) : array Validate the preconditions required for this release task.

Méthodes protégées

Méthode Description
getComponent ( ) : Components_Component Get the component this task should act upon.
getNotes ( ) : Components_Release_Notes Get the release notes.
getOutput ( ) : Components_Output Get the output handler.
getTasks ( ) : Components_Release_Tasks Get the tasks handler.
system ( string $call ) : string Run a system call.
systemInDirectory ( string $call, string $target_dir ) : string Run a system call.

Method Details

__construct() public méthode

Constructor.
public __construct ( Components_Release_Tasks $tasks, Components_Release_Notes $notes, Components_Output $output )
$tasks Components_Release_Tasks The task handler.
$notes Components_Release_Notes The release notes.
$output Components_Output Accepts output.

getComponent() protected méthode

Get the component this task should act upon.
protected getComponent ( ) : Components_Component
Résultat Components_Component The component to be released.

getName() public méthode

Get the name of this task.
public getName ( ) : string
Résultat string The task name.

getNotes() protected méthode

Get the release notes.
protected getNotes ( ) : Components_Release_Notes
Résultat Components_Release_Notes The release notes.

getOutput() protected méthode

Get the output handler.
protected getOutput ( ) : Components_Output
Résultat Components_Output The output handler.

getTasks() protected méthode

Get the tasks handler.
protected getTasks ( ) : Components_Release_Tasks
Résultat Components_Release_Tasks The release tasks handler.

run() public méthode

Run the task.
public run ( &$options ) : null
Résultat null

setComponent() public méthode

Set the component this task should act upon.
public setComponent ( Components_Component $component ) : null
$component Components_Component The component to be released.
Résultat null

setName() public méthode

Set the name of this task.
public setName ( string $name ) : null
$name string The task name.
Résultat null

skip() public méthode

Can the task be skipped?
public skip ( array $options ) : boolean
$options array Additional options.
Résultat boolean True if it can be skipped.

system() protected méthode

Run a system call.
protected system ( string $call ) : string
$call string The system call to execute.
Résultat string The command output.

systemInDirectory() protected méthode

Run a system call.
protected systemInDirectory ( string $call, string $target_dir ) : string
$call string The system call to execute.
$target_dir string Run the command in the provided target path.
Résultat string The command output.

validate() public méthode

Validate the preconditions required for this release task.
public validate ( array $options ) : array
$options array Additional options.
Résultat array An empty array if all preconditions are met and a list of error messages otherwise.