PHP 클래스 Banago\PHPloy\Git

파일 보기 프로젝트 열기: banago/phploy

공개 프로퍼티들

프로퍼티 타입 설명
$branch Git branch
$revision Git revision

보호된 프로퍼티들

프로퍼티 타입 설명
$repo Git repository

공개 메소드들

메소드 설명
__construct ( null $repo = null ) Git constructor.
checkout ( string $branch, string $repoPath = null ) : array Checkout given $branch.
command ( string $command, string $repoPath = null ) : array Runs a git command and returns the output (as an array).
diff ( string $remoteRevision, string $localRevision, string $repoPath = null ) : array Diff versions.
exec ( string $command ) : array Executes a console command and returns the output (as an array).

메소드 상세

__construct() 공개 메소드

Git constructor.
public __construct ( null $repo = null )
$repo null

checkout() 공개 메소드

Checkout given $branch.
public checkout ( string $branch, string $repoPath = null ) : array
$branch string
$repoPath string
리턴 array

command() 공개 메소드

Runs a git command and returns the output (as an array).
public command ( string $command, string $repoPath = null ) : array
$command string "git [your-command-here]"
$repoPath string Defaults to $this->repo
리턴 array Lines of the output

diff() 공개 메소드

Diff versions.
public diff ( string $remoteRevision, string $localRevision, string $repoPath = null ) : array
$remoteRevision string
$localRevision string
$repoPath string
리턴 array

exec() 공개 메소드

Executes a console command and returns the output (as an array).
public exec ( string $command ) : array
$command string Command to execute
리턴 array of all lines that were output to the console during the command (STDOUT)

프로퍼티 상세

$branch 공개적으로 프로퍼티

Git branch
public $branch

$repo 보호되어 있는 프로퍼티

Git repository
protected $repo

$revision 공개적으로 프로퍼티

Git revision
public $revision