class FileEvent

Overview

This class demonstrates is mostly used for acceptance tests but can be used for actual deployment events too! This event handler is extremely simple and just looks for the existence of a file in the directory If the file exists, that is considered a deployable event The post_deploy hook will delete the file after the deployment is complete so be mindful of that - unless the cleanup flag is set to false

Defined in:

runway/events/file.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 to see if the file exists


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

Run post deploy logic to clean up the file


[View source]