PHP Класс Gush\Helper\GitConfigHelper

Наследование: extends Symfony\Component\Console\Helper\Helper
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( ProcessHelper $processHelper, Application $application )
ensureNotesFetching ( string $remote ) Ensures the fetching of notes is configured for the remote.
ensureRemoteExists ( string $org, string $repo ) Ensure the remote exist for the org and repo.
getGitConfig ( string $config, string $section = 'local', $all = false ) : string
getName ( )
getRemoteInfo ( string $name ) : array
hasGitConfig ( string $config, string $section = 'local', null $expectedValue = null ) : boolean
remoteExists ( $name, $expectedUrl = null )
setGitConfig ( string $config, string $value, boolean $overwrite = false, string $section = 'local' )
setRemote ( string $name, string $url, string $pushUrl = null )

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

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

public __construct ( ProcessHelper $processHelper, Application $application )
$processHelper ProcessHelper
$application Gush\Application

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

Ensures the fetching of notes is configured for the remote.
public ensureNotesFetching ( string $remote )
$remote string

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

Ensure the remote exist for the org and repo.
public ensureRemoteExists ( string $org, string $repo )
$org string
$repo string

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

public getGitConfig ( string $config, string $section = 'local', $all = false ) : string
$config string
$section string
Результат string

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

public getName ( )

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

public getRemoteInfo ( string $name ) : array
$name string
Результат array [host, vendor, repo]

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

public hasGitConfig ( string $config, string $section = 'local', null $expectedValue = null ) : boolean
$config string
$section string
$expectedValue null
Результат boolean

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

public remoteExists ( $name, $expectedUrl = null )

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

public setGitConfig ( string $config, string $value, boolean $overwrite = false, string $section = 'local' )
$config string
$value string
$overwrite boolean
$section string

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

public setRemote ( string $name, string $url, string $pushUrl = null )
$name string
$url string
$pushUrl string Optional push-url