pass plugin to uninstall

This commit is contained in:
Josh Manders
2016-11-17 16:06:57 -06:00
parent c4c7886037
commit d4475e582d
2 changed files with 5 additions and 3 deletions

View File

@@ -869,7 +869,7 @@ some code to remove a docker hub tag because it's not implemented in the CLI....
### `uninstall`
- Description: Used to cleanup after itself.
- Invoked by: `dokku plugin:uninstall`
- Arguments: None
- Arguments: `$PLUGIN`
- Example:
```shell
@@ -878,7 +878,9 @@ some code to remove a docker hub tag because it's not implemented in the CLI....
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
docker rmi -f "${PLUGIN_IMAGE_DEPENDENCY}"
PLUGIN="$1"
[[ "$PLUGIN" = "my-plugin" ]] && docker rmi -f "${PLUGIN_IMAGE_DEPENDENCY}"
```
### `update`