PHP Class Gush\Helper\GitConfigHelper

Inheritance: extends Symfony\Component\Console\Helper\Helper
Afficher le fichier Open project: gushphp/gush Class Usage Examples

Méthodes publiques

Méthode Description
__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 )

Method Details

__construct() public méthode

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

ensureNotesFetching() public méthode

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

ensureRemoteExists() public méthode

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

getGitConfig() public méthode

public getGitConfig ( string $config, string $section = 'local', $all = false ) : string
$config string
$section string
Résultat string

getName() public méthode

public getName ( )

getRemoteInfo() public méthode

public getRemoteInfo ( string $name ) : array
$name string
Résultat array [host, vendor, repo]

hasGitConfig() public méthode

public hasGitConfig ( string $config, string $section = 'local', null $expectedValue = null ) : boolean
$config string
$section string
$expectedValue null
Résultat boolean

remoteExists() public méthode

public remoteExists ( $name, $expectedUrl = null )

setGitConfig() public méthode

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

setRemote() public méthode

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