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.
Show file Open project: horde/horde

Public Methods

Method 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.

Protected Methods

Method 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 method

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 method

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

getName() public method

Get the name of this task.
public getName ( ) : string
return string The task name.

getNotes() protected method

Get the release notes.
protected getNotes ( ) : Components_Release_Notes
return Components_Release_Notes The release notes.

getOutput() protected method

Get the output handler.
protected getOutput ( ) : Components_Output
return Components_Output The output handler.

getTasks() protected method

Get the tasks handler.
protected getTasks ( ) : Components_Release_Tasks
return Components_Release_Tasks The release tasks handler.

run() public method

Run the task.
public run ( &$options ) : null
return null

setComponent() public method

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

setName() public method

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

skip() public method

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

system() protected method

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

systemInDirectory() protected method

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.
return string The command output.

validate() public method

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