PHP 클래스 app\components\Folder

상속: extends Command
파일 보기 프로젝트 열기: meolu/walle-web 1 사용 예제들

공개 메소드들

메소드 설명
ansibleCopyFiles ( Project $project, Task $task ) : boolean 将多个文件/目录通过tar + ansible传输到指定的多个目标机
cleanUpLocal ( $version ) : boolean | integer 收尾做处理工作,如清理本地的部署空间
getFileMd5 ( $file ) : boolean 获取文件的MD5
getLinkCommand ( null $version ) : boolean 打软链
initLocalWorkspace ( Task $task ) : boolean | integer 初始化宿主机部署工作空间
initRemoteVersion ( $version ) : boolean 目标机器的版本库初始化 git 和 svn 没有任何区别, 只初始空目录
removeLocalProjectWorkspace ( $projectDir ) : boolean | integer 删除本地项目空间
scpCopyFiles ( Project $project, Task $task ) : boolean 将多个文件/目录通过tar + scp传输到指定的多个目标机

보호된 메소드들

메소드 설명
_copyPackageToServer ( $remoteHost, Project $project, Task $task ) : boolean
_copyPackageToServerByAnsible ( Project $project, Task $task ) : boolean
_packageFiles ( Project $project, Task $task ) : boolean
_unpackageFiles ( Project $project, Task $task ) : boolean
_unpackageFilesByAnsible ( Project $project, Task $task ) : boolean
excludes ( array $excludes ) : string rsync时,要排除的文件

메소드 상세

_copyPackageToServer() 보호된 메소드

protected _copyPackageToServer ( $remoteHost, Project $project, Task $task ) : boolean
$remoteHost
$project app\models\Project
$task app\models\Task
리턴 boolean

_copyPackageToServerByAnsible() 보호된 메소드

protected _copyPackageToServerByAnsible ( Project $project, Task $task ) : boolean
$project app\models\Project
$task app\models\Task
리턴 boolean

_packageFiles() 보호된 메소드

protected _packageFiles ( Project $project, Task $task ) : boolean
$project app\models\Project
$task app\models\Task
리턴 boolean

_unpackageFiles() 보호된 메소드

protected _unpackageFiles ( Project $project, Task $task ) : boolean
$project app\models\Project
$task app\models\Task
리턴 boolean

_unpackageFilesByAnsible() 보호된 메소드

protected _unpackageFilesByAnsible ( Project $project, Task $task ) : boolean
$project app\models\Project
$task app\models\Task
리턴 boolean

ansibleCopyFiles() 공개 메소드

将多个文件/目录通过tar + ansible传输到指定的多个目标机
public ansibleCopyFiles ( Project $project, Task $task ) : boolean
$project app\models\Project
$task app\models\Task
리턴 boolean

cleanUpLocal() 공개 메소드

收尾做处理工作,如清理本地的部署空间
public cleanUpLocal ( $version ) : boolean | integer
$version
리턴 boolean | integer

excludes() 보호된 메소드

rsync时,要排除的文件
protected excludes ( array $excludes ) : string
$excludes array
리턴 string

getFileMd5() 공개 메소드

获取文件的MD5
public getFileMd5 ( $file ) : boolean
$file
리턴 boolean

getLinkCommand() 공개 메소드

打软链
public getLinkCommand ( null $version ) : boolean
$version null
리턴 boolean

initLocalWorkspace() 공개 메소드

初始化宿主机部署工作空间
public initLocalWorkspace ( Task $task ) : boolean | integer
$task app\models\Task
리턴 boolean | integer

initRemoteVersion() 공개 메소드

目标机器的版本库初始化 git 和 svn 没有任何区别, 只初始空目录
저자: wushuiyong
public initRemoteVersion ( $version ) : boolean
리턴 boolean

removeLocalProjectWorkspace() 공개 메소드

删除本地项目空间
public removeLocalProjectWorkspace ( $projectDir ) : boolean | integer
$projectDir
리턴 boolean | integer

scpCopyFiles() 공개 메소드

将多个文件/目录通过tar + scp传输到指定的多个目标机
public scpCopyFiles ( Project $project, Task $task ) : boolean
$project app\models\Project
$task app\models\Task
리턴 boolean