PHP Class REBELinBLUE\Deployer\Repositories\EloquentDeploymentRepository

Inheritance: extends EloquentRepository, implements REBELinBLUE\Deployer\Repositories\Contracts\DeploymentRepositoryInterface, use trait Illuminate\Foundation\Bus\DispatchesJobs
Mostra file Open project: rebelinblue/deployer

Public Methods

Method Description
__construct ( Deployment $model ) EloquentDeploymentRepository constructor.
abort ( $model_id )
abortQueued ( $project_id ) Gets all pending and running deployments for a project and aborts them.
create ( array $fields )
getLastWeekCount ( $project_id )
getLatest ( $project_id, $paginate = 15 )
getLatestSuccessful ( $project_id )
getPending ( )
getRunning ( )
getTimeline ( )
getTodayCount ( $project_id )
rollback ( $model_id, $reason = '', array $optional = [] ) Creates a new deployment based on a previous one.

Private Methods

Method Description
getBetweenDates ( integer $project_id, Carbon\Carbon $startDate, Carbon\Carbon $endDate ) : integer
getStatus ( integer $status ) : Illuminate\Database\Eloquent\Collection

Method Details

__construct() public method

EloquentDeploymentRepository constructor.
public __construct ( Deployment $model )
$model REBELinBLUE\Deployer\Deployment

abort() public method

public abort ( $model_id )

abortQueued() public method

public abortQueued ( $project_id )

create() public method

public create ( array $fields )
$fields array

getLastWeekCount() public method

See also: DeploymentRepository::getBetweenDates()
public getLastWeekCount ( $project_id )

getLatest() public method

public getLatest ( $project_id, $paginate = 15 )

getLatestSuccessful() public method

public getLatestSuccessful ( $project_id )

getPending() public method

public getPending ( )

getRunning() public method

public getRunning ( )

getTimeline() public method

public getTimeline ( )

getTodayCount() public method

See also: DeploymentRepository::getBetweenDates()
public getTodayCount ( $project_id )

rollback() public method

public rollback ( $model_id, $reason = '', array $optional = [] )
$optional array