PHP Class Modman_Command_Clone

显示文件 Open project: sitewards/modman-php Class Usage Examples

Public Methods

Method Description
__construct ( string $sGitUrl, Modman_Command_Create $oCreate ) saves the git url and pre-calculates local folder name
doClone ( boolean $bForce = false, boolean $bCreateModman = false ) main method to create a clone of a git repo

Private Methods

Method Description
deleteModuleFolder ( string $sFolderName ) : boolean deletes module folder
doCreateModmanFile ( ) creates modman file in the module folder
executeClone ( ) executes git clone command
existsModmanFile ( ) : boolean checks if modman file exists in module folder
existsModuleFolder ( ) : boolean checks if module folder exists
getFolderNameFromParam ( string $sGitUrl ) : string calculates local folder name from git url or directory
getModuleFolderPath ( ) : string returns path to module folder

Method Details

__construct() public method

saves the git url and pre-calculates local folder name
public __construct ( string $sGitUrl, Modman_Command_Create $oCreate )
$sGitUrl string
$oCreate Modman_Command_Create

doClone() public method

main method to create a clone of a git repo
public doClone ( boolean $bForce = false, boolean $bCreateModman = false )
$bForce boolean
$bCreateModman boolean