PHP Класс REBELinBLUE\Deployer\Jobs\DeployProject

Наследование: extends Job, implements Illuminate\Contracts\Queue\ShouldQueue, use trait Illuminate\Queue\InteractsWithQueue, use trait Illuminate\Queue\SerializesModels, use trait Illuminate\Foundation\Bus\DispatchesJobs
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Deployment $deployment ) DeployProject constructor.
handle ( ) Execute the command.
queue ( Illuminate\Queue\Queue $queue, Job $command ) Overwrite the queue method to push to a different queue.

Приватные методы

Метод Описание
buildScript ( DeployStep $step, Server $server ) : Runner Generates the actual bash commands to run on the server.
cancelPendingSteps ( ) Finds all pending steps and marks them as cancelled.
cleanupDeployment ( ) Remove left over artifacts from a failed deploy on each server.
configurationFileCommands ( string $release_dir ) : string create the command for sending uploaded files.
createReleaseArchive ( ) Creates the archive for the commit to deploy.
getScriptForStep ( DeployStep $step, array $tokens = [] ) : Runner Gets the process which is used for the supplied step.
getTokenList ( DeployStep $step, Server $server ) : array Generates the list of tokens for the scripts.
logError ( string $message ) : string Generates an error string to log to the DB.
logSuccess ( string $message ) : string Generates an general output string to log to the DB.
runStep ( DeployStep $step ) Executes the commands for a step.
sendFile ( string $local_file, string $remote_file, ServerLog $log ) Sends a file to a remote server.
sendFileFromString ( string $remote_path, string $content, ServerLog $log ) Send a string to server.
sendFilesForStep ( DeployStep $step, ServerLog $log ) Sends the files needed to the server.
shareFileCommands ( string $release_dir, string $shared_dir ) : string Create the script for shared files.
updateRepoInfo ( ) Clones the repository locally to get the latest log entry and updates the deployment model.

Описание методов

__construct() публичный Метод

DeployProject constructor.
public __construct ( Deployment $deployment )
$deployment REBELinBLUE\Deployer\Deployment

handle() публичный Метод

Execute the command.
public handle ( )

queue() публичный Метод

Overwrite the queue method to push to a different queue.
public queue ( Illuminate\Queue\Queue $queue, Job $command )
$queue Illuminate\Queue\Queue
$command Job