PHP 클래스 Gush\Helper\GitConfigHelper

상속: extends Symfony\Component\Console\Helper\Helper
파일 보기 프로젝트 열기: gushphp/gush 1 사용 예제들

공개 메소드들

메소드 설명
__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