REBELinBLUE\Deployer\Listeners\Events\NotifyDeploy::handle PHP Метод

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

Handle the event.
public handle ( DeployFinished $event )
$event REBELinBLUE\Deployer\Events\DeployFinished
    public function handle(DeployFinished $event)
    {
        $project = $event->deployment->project;
        $deployment = $event->deployment;
        if ($deployment->isAborted()) {
            return;
        }
        // Send slack notifications
        foreach ($project->notifications as $notification) {
            if ($notification->failure_only === true && $deployment->isSuccessful()) {
                continue;
            }
            $this->dispatch(new SlackNotify($notification, $deployment->notificationPayload()));
        }
        // Send email notification
        $this->dispatch(new MailDeployNotification($project, $deployment));
        // Trigger to check the project urls
        $this->dispatch(new RequestProjectCheckUrl($project->checkUrls));
    }