Skip to content

Allow user to run post-termination tasks via callback - #4

Open
sharabash wants to merge 1 commit into
mkubenka:mkubenkafrom
sharabash:pr2-termination-hook
Open

Allow user to run post-termination tasks via callback#4
sharabash wants to merge 1 commit into
mkubenka:mkubenkafrom
sharabash:pr2-termination-hook

Conversation

@sharabash

Copy link
Copy Markdown

This commit adds a feature which allows the user to provide a Proc
callback to the VagrantPlugins::AWS::Config class. If set, then
immediately after the instance is terminated (in the destroy lifecycle),
the callback will get called. This facilitates use-cases where the user
needs to do post-terminate cleanup work, such as removing associated
Route53 records or anything else.

This commit adds a feature which allows the user to provide a Proc
callback to the VagrantPlugins::AWS::Config class. If set, then
immediately after the instance is terminated (in the destroy lifecycle),
the callback will get called. This facilitates use-cases where the user
needs to do post-destroy cleanup tasks, such as removing associated
Route53 records or anything else.

@mkubenka mkubenka left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update config spec test with new option.

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.

2 participants