Merge pull request #4882 from dokku/setup-config

Add missing setup/teardown of builder plugin properties
This commit is contained in:
Jose Diaz-Gonzalez
2021-10-24 20:21:33 -04:00
committed by GitHub
6 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-builder-dockerfile-install() {
declare desc="installs the builder-dockerfile plugin"
declare trigger="install"
fn-plugin-property-setup "builder-dockerfile"
}
trigger-builder-dockerfile-install "$@"

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-builder-dockerfile-post-delete() {
declare desc="destroys the builder-dockerfile properties for a given app"
declare trigger="post-delete"
declare APP="$1"
fn-plugin-property-destroy "builder-dockerfile" "$APP"
}
trigger-builder-dockerfile-post-delete "$@"

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-builder-herokuish-install() {
declare desc="installs the builder-herokuish plugin"
declare trigger="install"
fn-plugin-property-setup "builder-herokuish"
}
trigger-builder-herokuish-install "$@"

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-builder-herokuish-post-delete() {
declare desc="destroys the builder-herokuish properties for a given app"
declare trigger="post-delete"
declare APP="$1"
fn-plugin-property-destroy "builder-herokuish" "$APP"
}
trigger-builder-herokuish-post-delete "$@"

13
plugins/builder-pack/install Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-builder-pack-install() {
declare desc="installs the builder-pack plugin"
declare trigger="install"
fn-plugin-property-setup "builder-pack"
}
trigger-builder-pack-install "$@"

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-builder-pack-post-delete() {
declare desc="destroys the builder-pack properties for a given app"
declare trigger="post-delete"
declare APP="$1"
fn-plugin-property-destroy "builder-pack" "$APP"
}
trigger-builder-pack-post-delete "$@"