Skip to content

Commit 73ad449

Browse files
authored
docs: document removal_actions, fixes #30 (#32)
1 parent fdf6f0f commit 73ad449

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

install.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
name: addon-template
1+
# Details about the install.yaml file are at https://ddev.readthedocs.io/en/latest/users/extend/additional-services/#sections-and-features-of-ddev-get-add-on-installyaml
2+
3+
name: your-addon
24

35
# pre_install_actions - list of actions to run before installing the addon.
46
# Examples would be removing an extraneous docker volume,
@@ -72,6 +74,10 @@ post_install_actions:
7274
# - touch somefile.${GOOS}.${DDEV_WEBSERVER}
7375
# - perl -pi -e 's/oldstring/newstring/g' docker-compose.addon-template.yaml
7476

77+
# Shell actions that can be done during removal of the add-on
78+
removal_actions:
79+
# - rm ~/.ddev/commands/web/somecommand
80+
7581
# Advanced usage - yaml files can be read in and then used as go template actions
7682
# in pre_install_actions and post_install_actions
7783
# See example in

0 commit comments

Comments
 (0)