Skip to content

Add build hooks for before/after actions#198

Open
eelcoj wants to merge 1 commit into
mainfrom
around-build-hooks
Open

Add build hooks for before/after actions#198
eelcoj wants to merge 1 commit into
mainfrom
around-build-hooks

Conversation

@eelcoj
Copy link
Copy Markdown
Contributor

@eelcoj eelcoj commented May 20, 2026

Configure before_build and after_build callbacks to run logic before/after the build process.

Perron.configure do |config|
  config.before_build = ->(context) {
    # do whatever before build
  }

  config.after_build = ->(context) {
    # do whatever after build succeeded
  }
end

Configure `before_build` and `after_build` callbacks to run logic before/after the build process.
```ruby
Perron.configure do |config|
  config.before_build = ->(context) {
    # do whatever before build
  }

  config.after_build = ->(context) {
    # do whatever after build succeeded
  }
end
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant