PHP Класс Components_Helper_Commit, horde

Copyright 2010-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.
Автор: Gunnar Wrobel ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Components_Output $output, array $options ) Constructor.
add ( string $path, string $directory ) : null Add a path to be included in the commit and record the working directory for this git operation.
commit ( string $log ) : null Add all modified files and commit them.
tag ( string $tag, string $message, string $directory ) : null Tag the component.

Защищенные методы

Метод Описание
system ( string $call ) : string Run a system call.
systemInDirectory ( string $call, string $target_dir ) : string Run a system call.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Components_Output $output, array $options )
$output Components_Output The output handler.
$options array Applicaiton options.

add() публичный Метод

Add a path to be included in the commit and record the working directory for this git operation.
public add ( string $path, string $directory ) : null
$path string The path to the modified file.
$directory string The working directory.
Результат null

commit() публичный Метод

Add all modified files and commit them.
public commit ( string $log ) : null
$log string The commit message.
Результат null

system() защищенный Метод

Run a system call.
protected system ( string $call ) : string
$call string The system call to execute.
Результат string The command output.

systemInDirectory() защищенный Метод

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.
Результат string The command output.

tag() публичный Метод

Tag the component.
public tag ( string $tag, string $message, string $directory ) : null
$tag string Tag name.
$message string Tag message.
$directory string The working directory.
Результат null