PHP Class app\models\Project

Inheritance: extends Illuminate\Database\Eloquent\Model
Afficher le fichier Open project: meolu/walle-web Class Usage Examples

Méthodes publiques

Свойство Type Description
$CONF
$LEVEL

Méthodes publiques

Méthode Description
afterDelete ( ) 添加数据删除事件afterDelete
afterSave ( boolean $insert, array $changedAttributes ) 添加数据保存事件afterSave
attributeLabels ( )
behaviors ( )
getAnsibleHostsFile ( integer $projectId ) : string 获取当前进程配置的ansible hosts文件路径
getAnsibleStatus ( ) : boolean 获取当前进程配置的ansible状态
getConf ( $id = null ) : string | ActiveQuery 获取当前进程的项目配置
getDeployFromDir ( ) : string 拼接宿主机的仓库目录 {deploy_from}/{env}/{project}
getDeployPackagePath ( $version ) : string 获取 ansible 宿主机tar文件路径
getDeployWorkspace ( $version ) : string 拼接宿主机的部署隔离工作空间 {deploy_from}/{env}/{project}-YYmmdd-HHiiss
getGitProjectName ( $gitUrl ) : mixed 根据git地址获取项目名字
getHosts ( ) 获取当前进程配置的目标机器host列表
getReleaseVersionDir ( $version = '' ) : string 拼接目标机要发布的目录 {release_library}/{project}/{version}
getReleaseVersionPackage ( string $version = '' ) : string 拼接目标机要发布的打包文件路径 {release_library}/{project}/{version}.tar.gz
getSvnDeployBranchFromDir ( string $branchName = 'trunk' ) : string 拼接宿主机的SVN仓库目录(带branches/tags目录)
getTargetWorkspace ( ) : string 获取目标机要发布的目录 {webroot}
rules ( )
tableName ( )

Method Details

afterDelete() public méthode

添加数据删除事件afterDelete
Author: wushuiyong
public afterDelete ( )

afterSave() public méthode

添加数据保存事件afterSave
Author: wushuiyong
public afterSave ( boolean $insert, array $changedAttributes )
$insert boolean
$changedAttributes array

attributeLabels() public méthode

public attributeLabels ( )

behaviors() public méthode

public behaviors ( )

getAnsibleHostsFile() public static méthode

{ansible_hosts.dir}/project_{projectId}
public static getAnsibleHostsFile ( integer $projectId ) : string
$projectId integer 可以传入指定的id
Résultat string

getAnsibleStatus() public static méthode

获取当前进程配置的ansible状态
public static getAnsibleStatus ( ) : boolean
Résultat boolean

getConf() public static méthode

获取当前进程的项目配置
public static getConf ( $id = null ) : string | ActiveQuery
$id
Résultat string | yii\db\ActiveQuery

getDeployFromDir() public static méthode

拼接宿主机的仓库目录 {deploy_from}/{env}/{project}
public static getDeployFromDir ( ) : string
Résultat string

getDeployPackagePath() public static méthode

{deploy_from}/{env}/{project}-YYmmdd-HHiiss.tar.gz
public static getDeployPackagePath ( $version ) : string
$version
Résultat string

getDeployWorkspace() public static méthode

拼接宿主机的部署隔离工作空间 {deploy_from}/{env}/{project}-YYmmdd-HHiiss
public static getDeployWorkspace ( $version ) : string
Résultat string

getGitProjectName() public static méthode

根据git地址获取项目名字
public static getGitProjectName ( $gitUrl ) : mixed
$gitUrl
Résultat mixed

getHosts() public static méthode

获取当前进程配置的目标机器host列表
public static getHosts ( )

getReleaseVersionDir() public static méthode

拼接目标机要发布的目录 {release_library}/{project}/{version}
public static getReleaseVersionDir ( $version = '' ) : string
$version
Résultat string

getReleaseVersionPackage() public static méthode

拼接目标机要发布的打包文件路径 {release_library}/{project}/{version}.tar.gz
public static getReleaseVersionPackage ( string $version = '' ) : string
$version string
Résultat string

getSvnDeployBranchFromDir() public static méthode

拼接宿主机的SVN仓库目录(带branches/tags目录)
public static getSvnDeployBranchFromDir ( string $branchName = 'trunk' ) : string
$branchName string
Résultat string

getTargetWorkspace() public static méthode

获取目标机要发布的目录 {webroot}
public static getTargetWorkspace ( ) : string
Résultat string

rules() public méthode

public rules ( )

tableName() public static méthode

public static tableName ( )

Property Details

$CONF public_oe static_oe property

public static $CONF

$LEVEL public_oe static_oe property

public static $LEVEL