PHP Class Liip\RMT\Action\BaseAction

Inheritance: implements Liip\RMT\ContextAwareInterface, implements Liip\RMT\Action\ActionInterface
Exibir arquivo Open project: liip/rmt Class Usage Examples

Protected Properties

Property Type Description
$options

Public Methods

Method Description
__construct ( $options = [] )
confirmSuccess ( ) A common method to confirm success to the user
execute ( ) Main part of the action
executeCommandInProcess ( string $cmd, float | null $timeout = null ) : Process Execute a command and render the output through the classical indented output
getInformationRequests ( ) : array Return an array of options that can be * Liip\RMT\Option\Option A new option specific to this prerequiste * string The name of a standarmt option (comment, type, author.
getTitle ( ) : string Return the name of the action as it will be display to the user

Method Details

__construct() public method

public __construct ( $options = [] )

confirmSuccess() public method

A common method to confirm success to the user
public confirmSuccess ( )

execute() abstract public method

Main part of the action
abstract public execute ( )

executeCommandInProcess() public method

Execute a command and render the output through the classical indented output
public executeCommandInProcess ( string $cmd, float | null $timeout = null ) : Process
$cmd string
$timeout float | null
return Symfony\Component\Process\Process

getInformationRequests() public method

..)
public getInformationRequests ( ) : array
return array

getTitle() public method

Return the name of the action as it will be display to the user
public getTitle ( ) : string
return string

Property Details

$options protected_oe property

protected $options