PHP Class REBELinBLUE\Deployer\Deployment

Inheritance: extends Illuminate\Database\Eloquent\Model, implements Robbo\Presenter\PresentableInterface, implements REBELinBLUE\Deployer\Contracts\RuntimeInterface, use trait Illuminate\Database\Eloquent\SoftDeletes
Afficher le fichier Open project: rebelinblue/deployer Class Usage Examples

Méthodes publiques

Свойство Type Description
$currentDeployment

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
loadCommands ( ) Query the DB and load the HasMany relationship for commands.

Method Details

boot() public static méthode

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

getBranchURLAttribute() public méthode

Gets the HTTP URL to the branch.
See also: Project::accessDetails()
public getBranchURLAttribute ( ) : string | false
Résultat string | false

getCommandsAttribute() public méthode

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

getCommitUrlAttribute() public méthode

Gets the HTTP URL to the commit.
public getCommitUrlAttribute ( ) : string | false
Résultat string | false

getDeployerNameAttribute() public méthode

Define a accessor for the deployer name.
public getDeployerNameAttribute ( ) : string
Résultat string

getPresenter() public méthode

Gets the view presenter.
public getPresenter ( ) : DeploymentPresenter
Résultat REBELinBLUE\Deployer\Presenters\DeploymentPresenter

getProjectNameAttribute() public méthode

Define a accessor for the project name.
public getProjectNameAttribute ( ) : string
Résultat string

getReleaseIdAttribute() public méthode

Mutator to get the release ID.
public getReleaseIdAttribute ( ) : string
Résultat string

getRepoFailureAttribute() public méthode

Checks whether the repository failed to load.
public getRepoFailureAttribute ( ) : boolean
Résultat boolean

getShortCommitAttribute() public méthode

Gets the short commit hash.
public getShortCommitAttribute ( ) : string
Résultat string

isAborted() public méthode

Determines whether the deployment is aborted.
public isAborted ( ) : boolean
Résultat boolean

isAborting() public méthode

Determines whether the deployment is waiting to be aborted.
public isAborting ( ) : boolean
Résultat boolean

isCurrent() public méthode

Determines if the deployment is the latest deployment.
public isCurrent ( ) : boolean
Résultat boolean

isFailed() public méthode

Determines whether the deployment failed.
public isFailed ( ) : boolean
Résultat boolean

isPending() public méthode

Determines whether the deployment is pending.
public isPending ( ) : boolean
Résultat boolean

isRunning() public méthode

Determines whether the deployment is running.
public isRunning ( ) : boolean
Résultat boolean

isSuccessful() public méthode

Determines whether the deployment is successful.
public isSuccessful ( ) : boolean
Résultat boolean

notificationPayload() public méthode

Generates a slack payload for the deployment.
public notificationPayload ( ) : array
Résultat array

project() public méthode

Belongs to relationship.
public project ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

runtime() public méthode

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

steps() public méthode

Has many relationship.
public steps ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

user() public méthode

Belongs to relationship.
public user ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

Property Details

$appends protected_oe property

Additional attributes to include in the JSON representation.
protected array $appends
Résultat array

$casts protected_oe property

The attributes that should be casted to native types.
protected array $casts
Résultat array

$currentDeployment public_oe static_oe property

public static $currentDeployment

$dates protected_oe property

The fields which should be tried as Carbon instances.
protected array $dates
Résultat array

$fillable protected_oe property

The attributes that are mass assignable.
protected array $fillable
Résultat array

$hidden protected_oe property

The attributes excluded from the model's JSON form.
protected array $hidden
Résultat array