From 1668f3bbc689c15aaed026d7de45df9dc4fcc915 Mon Sep 17 00:00:00 2001 From: Michael Hobbs Date: Mon, 6 Jul 2015 12:45:37 -0700 Subject: [PATCH] rename *-herokuish pluginhooks to *-buildpack --- docs/development/pluginhooks.md | 16 ++++++++-------- plugins/00_dokku-standard/commands | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/development/pluginhooks.md b/docs/development/pluginhooks.md index 036359442..c3ae76929 100644 --- a/docs/development/pluginhooks.md +++ b/docs/development/pluginhooks.md @@ -180,9 +180,9 @@ for file in */REDIRECT; do done ``` -### `pre-build-herokuish` +### `pre-build-buildpack` -- Description: Allows you to run commands before the build image is created for a given app. For instance, this can be useful to add env vars to your container. Only applies to applications using herokuish. +- Description: Allows you to run commands before the build image is created for a given app. For instance, this can be useful to add env vars to your container. Only applies to applications using buildpacks. - Invoked by: `dokku build` - Arguments: `$APP` - Example: @@ -195,9 +195,9 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x # TODO ``` -### `post-build-herokuish` +### `post-build-buildpack` -- Description: Allows you to run commands after the build image is create for a given app. Only applies to applications using herokuish. +- Description: Allows you to run commands after the build image is create for a given app. Only applies to applications using buildpacks. - Invoked by: `dokku build` - Arguments: `$APP` - Example: @@ -240,9 +240,9 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x # TODO ``` -### `pre-release-herokuish` +### `pre-release-buildpack` -- Description: Allows you to run commands before environment variables are set for the release step of the deploy. Only applies to applications using herokuish. +- Description: Allows you to run commands before environment variables are set for the release step of the deploy. Only applies to applications using buildpacks. - Invoked by: `dokku release` - Arguments: `$APP` - Example: @@ -266,9 +266,9 @@ test $(docker wait $ID) -eq 0 docker commit $ID $IMAGE > /dev/null ``` -### `post-release-herokuish` +### `post-release-buildpack` -- Description: Allows you to run commands after environment variables are set for the release step of the deploy. Only applies to applications using herokuish. +- Description: Allows you to run commands after environment variables are set for the release step of the deploy. Only applies to applications using buildpacks. - Invoked by: `dokku release` - Arguments: `$APP` - Example: diff --git a/plugins/00_dokku-standard/commands b/plugins/00_dokku-standard/commands index 860f13f71..954702fdf 100755 --- a/plugins/00_dokku-standard/commands +++ b/plugins/00_dokku-standard/commands @@ -18,7 +18,7 @@ case "$1" in [[ -d $CACHE_DIR ]] || mkdir $CACHE_DIR # *DEPRECATED* in v0.4.0: `pluginhook pre-build` will be removed in future releases pluginhook pre-build "$APP" - pluginhook pre-build-herokuish "$APP" + pluginhook pre-build-buildpack "$APP" # *DEPRECATED* in v0.3.14: `pluginhook docker-args` will be removed in future releases # https://github.com/progrium/dokku/issues/896 & https://github.com/progrium/dokku/issues/906 @@ -31,7 +31,7 @@ case "$1" in # *DEPRECATED* in v0.4.0: `pluginhook post-build` will be removed in future releases pluginhook post-build "$APP" - pluginhook post-build-herokuish "$APP" + pluginhook post-build-buildpack "$APP" ;; dockerfile) @@ -60,7 +60,7 @@ case "$1" in herokuish) # *DEPRECATED* in v0.4.0: `pluginhook pre-release` will be removed in future releases pluginhook pre-release "$APP" - pluginhook pre-release-herokuish "$APP" + pluginhook pre-release-buildpack "$APP" if [[ -f "$DOKKU_ROOT/ENV" ]]; then id=$(docker run -i -a stdin $IMAGE /bin/bash -c "mkdir -p /app/.profile.d && cat > /app/.profile.d/00-global-env.sh" < "$DOKKU_ROOT/ENV") test "$(docker wait $id)" -eq 0 @@ -73,7 +73,7 @@ case "$1" in fi # *DEPRECATED* in v0.4.0: `pluginhook post-release` will be removed in future releases pluginhook post-release "$APP" - pluginhook post-release-herokuish "$APP" + pluginhook post-release-buildpack "$APP" ;; dockerfile)