Skip to content

Commit

Permalink
[Resolve Sceptre#746] add before_launch and after_launch hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerman committed Jun 19, 2019
1 parent 9e744bd commit b2e890b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/_source/docs/hooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Hook points

``before_delete`` or ``after_delete`` - run hook before or after Stack deletion.

``before_launch`` or ``after_launch`` - run hook before or after Stack launch.

Syntax:

Hooks are specified in a Stack’s config file, using the following syntax:
Expand Down Expand Up @@ -199,4 +201,4 @@ This hook can be used in a Stack config file with the following syntax:
.. _Custom Hooks: #custom-hooks
.. _subprocess documentation: https://docs.python.org/3/library/subprocess.html
.. _documentation: http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html
.. _this is great place to start: https://docs.python.org/3/distributing/
.. _this is great place to start: https://docs.python.org/3/distributing/
1 change: 1 addition & 0 deletions sceptre/plan/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def cancel_stack_update(self):
)
return self._wait_for_completion()

@add_stack_hooks
def launch(self):
"""
Launches the Stack.
Expand Down

0 comments on commit b2e890b

Please sign in to comment.