class GitHubDeployment

Defined in:

runway/events/github_deployment.cr

Constructors

Instance Method Summary

Instance methods inherited from class BaseEvent

check_for_event : Payload check_for_event, post_deploy(payload : Payload) : Payload post_deploy

Constructor methods inherited from class BaseEvent

new(log : Log, event : Event) new

Constructor Detail

def self.new(log : Log, event : Event) #

[View source]

Instance Method Detail

def check_for_event : Payload #

Check for a GitHub deployment event in the specified environment This method uses post_deploy hooks to create a deployment status for the deployment after a deployment completes/fails


[View source]
def post_deploy(payload : Payload) : Payload #

This method is called after the project's deployment has completed It will create a GitHub deployment status that reflects the deployment's success or failure The deployment status to use comes from the Payload.status attribute (success or failure) @param payload [Payload] the payload object that contains the deployment status and other information @return [Payload] the payload object that was passed in with possibly updated information/attributes


[View source]