Skip to content

Add hook system #32

@jbanass

Description

@jbanass

Problem

Given the purpose for Onesie is to run scripts that largely account for changing data, there are times where an artifact is necessary that records actions taken, and subsequently uploaded for later analysis. This is especially useful in continuous delivery circumstances where these onesies are ran without human intervention.

With that said, it's also understood that this gems purpose is to not handle uploading of artifacts.

Proposal

Add support for a hooks system (akin to RSpec's before(:each)) that allows for either onesie set up or tear down that enables consumers to do things such as:

  • prep storage providers for artifact upload
  • clean up things that a onesie may have created
  • Post a slack message stating this onesie's about to run

Could possibly take advantage of https://github.com/rails/rails/tree/main/activesupport for callback?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions