classes/phing/tasks/ext/git/GitBaseTask.php

\GitBaseTask

Base class for Git tasks

Use {@link Project#createTask} to register a new Task.

Extends from
\Task
see
\VersionControl_Git
author
Victor Farazdagi
copyright
2001,2002 THYRELL. All rights reserved
package
phing.tasks.ext.git
since
2.4.3
version
$Id: GitBaseTask.php 1122 2011-05-31 13:35:28Z mrook $

Properties

Propertyprivate\VersionControl_Git  $gitClient= 'null'

Default valuenullDetails
Type
\VersionControl_Git
Propertyprivatestring  $gitPath= '/usr/bin/git'

Bath to git binary

Default value/usr/bin/gitDetails
Type
string
Propertyprivatestring  $repository= ''

Current repository directory

Details
Type
string

Methods

methodprotected  getGitClient(  $reset = false,  $repository = null ) :
Parameters
Name Type Description
$reset
$repository
methodpublic  getGitPath( ) : string
Get path to git executable
Returns
Type Description
string
methodpublic  getRepository( ) : string
Get repository directory
Returns
Type Description
string
methodpublic  init( ) :
Initialize Task.

Check and include necessary libraries.

methodpublic  setGitPath( string $gitPath ) : \GitBaseTask
Set path to git executable
Parameters
Name Type Description
$gitPath string New path to git repository
Returns
Type Description
\GitBaseTask
methodpublic  setRepository( string $repository ) : \GitBaseTask
Set repository directory
Parameters
Name Type Description
$repository string Repo directory
Returns
Type Description
\GitBaseTask
Documentation was generated by DocBlox 0.13.1.