PHP 클래스 Modman_Command_Clone

파일 보기 프로젝트 열기: sitewards/modman-php 1 사용 예제들

공개 메소드들

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

비공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

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