PHP Class REBELinBLUE\Deployer\Project

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

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.
$checkurlStatus array The check url's status count.
$dates array The fields which should be treated as Carbon instances.
$fillable array The attributes that are mass assignable.
$heartbeatStatus array The heart beats status count.
$hidden array The attributes excluded from the model's JSON form.

Méthodes publiques

Méthode Description
accessDetails ( ) : array Parses the repository URL to get the user, domain, port and path parts.
applicationCheckUrlStatus ( ) : array Count the application url check status.
boot ( ) Override the boot method to bind model event listeners.
branches ( ) : array Gets the list of all branches for the project which are not the default.
checkUrls ( ) : CheckUrl Has many urls to check.
deployments ( ) : Deployment Has many relationship.
generateHash ( ) Generates a hash for use in the webhook URL.
getBranchUrlAttribute ( string $alternative = null ) : string | false Gets the HTTP URL to the branch.
getGroupNameAttribute ( ) : string Define a accessor for the group name.
getPresenter ( ) : ProjectPresenter Gets the view presenter.
getRepositoryPathAttribute ( ) : string | false Gets the repository path.
getRepositoryUrlAttribute ( ) : string | false Gets the HTTP URL to the repository.
getWebhookUrlAttribute ( ) : string Define an accessor for the webhook URL.
group ( ) : Group Belongs to relationship.
heartbeats ( ) : Heartbeat Has many relationship.
heartbeatsStatus ( ) : array Count the missed heartbeat.
isDeploying ( ) : boolean Determines whether the project is currently being deployed.
mirrorPath ( ) : string Generate a friendly path for the mirror of the repository.
notifications ( ) : Notification Has many relationship.
notifyEmails ( ) : SharedFile Has many relationship.
refs ( ) : Illuminate\Database\Eloquent\Relations\HasMany Has many relationship for git references.
servers ( ) : Server Has many relationship.
tags ( ) : Collection Gets the list of all tags for the project.

Méthodes protégées

Méthode Description
generateSSHKey ( ) Generates an SSH key and sets the private/public key properties.
regeneratePublicKey ( ) Generates an SSH key and sets the private/public key properties.

Method Details

accessDetails() public méthode

Parses the repository URL to get the user, domain, port and path parts.
public accessDetails ( ) : array
Résultat array

applicationCheckUrlStatus() public méthode

Count the application url check status.
public applicationCheckUrlStatus ( ) : array
Résultat array

boot() public static méthode

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

branches() public méthode

Gets the list of all branches for the project which are not the default.
public branches ( ) : array
Résultat array

checkUrls() public méthode

Has many urls to check.
public checkUrls ( ) : CheckUrl
Résultat CheckUrl

deployments() public méthode

Has many relationship.
public deployments ( ) : Deployment
Résultat Deployment

generateHash() public méthode

Generates a hash for use in the webhook URL.
public generateHash ( )

generateSSHKey() protected méthode

Generates an SSH key and sets the private/public key properties.
protected generateSSHKey ( )

getBranchUrlAttribute() public méthode

Gets the HTTP URL to the branch.
See also: Project::accessDetails()
public getBranchUrlAttribute ( string $alternative = null ) : string | false
$alternative string
Résultat string | false

getGroupNameAttribute() public méthode

Define a accessor for the group name.
public getGroupNameAttribute ( ) : string
Résultat string

getPresenter() public méthode

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

getRepositoryPathAttribute() public méthode

Gets the repository path.
See also: Project::accessDetails()
public getRepositoryPathAttribute ( ) : string | false
Résultat string | false

getRepositoryUrlAttribute() public méthode

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

getWebhookUrlAttribute() public méthode

Define an accessor for the webhook URL.
public getWebhookUrlAttribute ( ) : string
Résultat string

group() public méthode

Belongs to relationship.
public group ( ) : Group
Résultat Group

heartbeats() public méthode

Has many relationship.
public heartbeats ( ) : Heartbeat
Résultat Heartbeat

heartbeatsStatus() public méthode

Count the missed heartbeat.
public heartbeatsStatus ( ) : array
Résultat array

isDeploying() public méthode

Determines whether the project is currently being deployed.
public isDeploying ( ) : boolean
Résultat boolean

mirrorPath() public méthode

Use the repository rather than the project ID, so if a single repo is used in multiple projects it is not duplicated.
public mirrorPath ( ) : string
Résultat string

notifications() public méthode

Has many relationship.
public notifications ( ) : Notification
Résultat Notification

notifyEmails() public méthode

Has many relationship.
public notifyEmails ( ) : SharedFile
Résultat SharedFile

refs() public méthode

Has many relationship for git references.
See also: Project::tags()
See also: Project::branches()
public refs ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

regeneratePublicKey() protected méthode

Generates an SSH key and sets the private/public key properties.
protected regeneratePublicKey ( )

servers() public méthode

Has many relationship.
public servers ( ) : Server
Résultat Server

tags() public méthode

Gets the list of all tags for the project.
public tags ( ) : Collection
Résultat Illuminate\Support\Collection

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

$checkurlStatus protected_oe property

The check url's status count.
protected array $checkurlStatus
Résultat array

$dates protected_oe property

The fields which should be treated 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

$heartbeatStatus protected_oe property

The heart beats status count.
protected array $heartbeatStatus
Résultat array

$hidden protected_oe property

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