PHP 클래스 REBELinBLUE\Deployer\Deployment

상속: extends Illuminate\Database\Eloquent\Model, implements Robbo\Presenter\PresentableInterface, implements REBELinBLUE\Deployer\Contracts\RuntimeInterface, use trait Illuminate\Database\Eloquent\SoftDeletes
파일 보기 프로젝트 열기: rebelinblue/deployer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$currentDeployment

보호된 프로퍼티들

프로퍼티 타입 설명
$appends array Additional attributes to include in the JSON representation.
$casts array The attributes that should be casted to native types.
$dates array The fields which should be tried as Carbon instances.
$fillable array The attributes that are mass assignable.
$hidden array The attributes excluded from the model's JSON form.

공개 메소드들

메소드 설명
boot ( ) Override the boot method to bind model event listeners.
getBranchURLAttribute ( ) : string | false Gets the HTTP URL to the branch.
getCommandsAttribute ( ) : Collection Define a command attribute to be able to access to commands relationship.
getCommitUrlAttribute ( ) : string | false Gets the HTTP URL to the commit.
getDeployerNameAttribute ( ) : string Define a accessor for the deployer name.
getPresenter ( ) : DeploymentPresenter Gets the view presenter.
getProjectNameAttribute ( ) : string Define a accessor for the project name.
getReleaseIdAttribute ( ) : string Mutator to get the release ID.
getRepoFailureAttribute ( ) : boolean Checks whether the repository failed to load.
getShortCommitAttribute ( ) : string Gets the short commit hash.
isAborted ( ) : boolean Determines whether the deployment is aborted.
isAborting ( ) : boolean Determines whether the deployment is waiting to be aborted.
isCurrent ( ) : boolean Determines if the deployment is the latest deployment.
isFailed ( ) : boolean Determines whether the deployment failed.
isPending ( ) : boolean Determines whether the deployment is pending.
isRunning ( ) : boolean Determines whether the deployment is running.
isSuccessful ( ) : boolean Determines whether the deployment is successful.
notificationPayload ( ) : array Generates a slack payload for the deployment.
project ( ) : BelongsTo Belongs to relationship.
runtime ( ) : false | integer Determines how long the deploy took.
steps ( ) : Illuminate\Database\Eloquent\Relations\HasMany Has many relationship.
user ( ) : BelongsTo Belongs to relationship.

비공개 메소드들

메소드 설명
loadCommands ( ) Query the DB and load the HasMany relationship for commands.

메소드 상세

boot() 공개 정적인 메소드

Override the boot method to bind model event listeners.
public static boot ( )

getBranchURLAttribute() 공개 메소드

Gets the HTTP URL to the branch.
또한 보기: Project::accessDetails()
public getBranchURLAttribute ( ) : string | false
리턴 string | false

getCommandsAttribute() 공개 메소드

Define a command attribute to be able to access to commands relationship.
public getCommandsAttribute ( ) : Collection
리턴 Illuminate\Support\Collection

getCommitUrlAttribute() 공개 메소드

Gets the HTTP URL to the commit.
public getCommitUrlAttribute ( ) : string | false
리턴 string | false

getDeployerNameAttribute() 공개 메소드

Define a accessor for the deployer name.
public getDeployerNameAttribute ( ) : string
리턴 string

getPresenter() 공개 메소드

Gets the view presenter.
public getPresenter ( ) : DeploymentPresenter
리턴 REBELinBLUE\Deployer\Presenters\DeploymentPresenter

getProjectNameAttribute() 공개 메소드

Define a accessor for the project name.
public getProjectNameAttribute ( ) : string
리턴 string

getReleaseIdAttribute() 공개 메소드

Mutator to get the release ID.
public getReleaseIdAttribute ( ) : string
리턴 string

getRepoFailureAttribute() 공개 메소드

Checks whether the repository failed to load.

getShortCommitAttribute() 공개 메소드

Gets the short commit hash.
public getShortCommitAttribute ( ) : string
리턴 string

isAborted() 공개 메소드

Determines whether the deployment is aborted.
public isAborted ( ) : boolean
리턴 boolean

isAborting() 공개 메소드

Determines whether the deployment is waiting to be aborted.
public isAborting ( ) : boolean
리턴 boolean

isCurrent() 공개 메소드

Determines if the deployment is the latest deployment.
public isCurrent ( ) : boolean
리턴 boolean

isFailed() 공개 메소드

Determines whether the deployment failed.
public isFailed ( ) : boolean
리턴 boolean

isPending() 공개 메소드

Determines whether the deployment is pending.
public isPending ( ) : boolean
리턴 boolean

isRunning() 공개 메소드

Determines whether the deployment is running.
public isRunning ( ) : boolean
리턴 boolean

isSuccessful() 공개 메소드

Determines whether the deployment is successful.
public isSuccessful ( ) : boolean
리턴 boolean

notificationPayload() 공개 메소드

Generates a slack payload for the deployment.
public notificationPayload ( ) : array
리턴 array

project() 공개 메소드

Belongs to relationship.
public project ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

runtime() 공개 메소드

Determines how long the deploy took.
public runtime ( ) : false | integer
리턴 false | integer False if the deploy is still running, otherwise the runtime in seconds

steps() 공개 메소드

Has many relationship.
public steps ( ) : Illuminate\Database\Eloquent\Relations\HasMany
리턴 Illuminate\Database\Eloquent\Relations\HasMany

user() 공개 메소드

Belongs to relationship.
public user ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

프로퍼티 상세

$appends 보호되어 있는 프로퍼티

Additional attributes to include in the JSON representation.
protected array $appends
리턴 array

$casts 보호되어 있는 프로퍼티

The attributes that should be casted to native types.
protected array $casts
리턴 array

$currentDeployment 공개적으로 정적으로 프로퍼티

public static $currentDeployment

$dates 보호되어 있는 프로퍼티

The fields which should be tried as Carbon instances.
protected array $dates
리턴 array

$fillable 보호되어 있는 프로퍼티

The attributes that are mass assignable.
protected array $fillable
리턴 array

$hidden 보호되어 있는 프로퍼티

The attributes excluded from the model's JSON form.
protected array $hidden
리턴 array