PHP Class REBELinBLUE\Deployer\Jobs\QueueDeployment

Inheritance: extends Job, implements Illuminate\Contracts\Bus\SelfHandling, use trait Illuminate\Foundation\Bus\DispatchesJobs
Show file Open project: rebelinblue/deployer

Public Methods

Method Description
__construct ( Project $project, Deployment $deployment, array $optional = [] ) QueueDeployment constructor.
handle ( ) Execute the command.

Private Methods

Method Description
buildCommandList ( ) : array Builds up a list of commands to run before/after each stage.
createCommandStep ( integer $stage, Command $command ) Create an instance of DeployStep and a ServerLog entry for each server assigned to the command.
createDeployStep ( integer $stage ) Create an instance of DeployStep and a ServerLog entry for each server which can have code deployed.
setDeploymentStatus ( ) Sets the deployment to pending.

Method Details

__construct() public method

QueueDeployment constructor.
public __construct ( Project $project, Deployment $deployment, array $optional = [] )
$project REBELinBLUE\Deployer\Project
$deployment REBELinBLUE\Deployer\Deployment
$optional array

handle() public method

Execute the command.
public handle ( )