Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide runner context to terraspace hook #108

Merged
merged 1 commit into from
May 5, 2021
Merged

Conversation

tongueroo
Copy link
Contributor

This is a πŸ™‹β€β™‚οΈ feature or enhancement.
This is a 🧐 documentation change.

  • I've added tests (if it's a bug, feature or enhancement)
  • I've adjusted the documentation (if it's a feature or enhancement)
  • The test suite passes (run bundle exec rspec to verify this)

Summary

Pass the runner self argument to the user defined call method if it has an arity of 1.

Context

https://community.boltops.com/t/hooks-and-internal-variables/687

How to Test

Test example in the docs: http://terraspace.cloud/docs/config/hooks/ruby/#method-argument

Version Changes

Patch

@tongueroo tongueroo merged commit e12ce43 into master May 5, 2021
@tongueroo tongueroo deleted the hooks-context branch May 5, 2021 15:21
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