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.crConstructors
Instance Method Summary
-
#check_for_event : Payload
Check to see if the
file
exists -
#post_deploy(payload : Payload) : Payload
Run post deploy logic to clean up the file
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
Instance Method Detail
Run post deploy logic to clean up the file