Sha256: 6c76f9961c33728d2c5c1fdffa602fa0ca443d78afe4a94c44e55549db31a2f7
Contents?: true
Size: 835 Bytes
Versions: 27
Compression:
Stored size: 835 Bytes
Contents
## General Form ```ruby before(COMMAND_NAME, OPTIONS) ```` The command name corresponds to the `{{ include.command }}` commands: apply, delete, etc. ## Hook Options Name | Description ---|--- label | A human-friendly label so you can see what hooks is being run. execute | The script or command to run. IE: path/to/some/script.sh exit_on_fail | Whether or not to continue process if the script returns an failed exit code. {% if include.command == "kubectl" %}on | What resource to run the hook on. IE: shared/namespace, web/deployment, web/service. Note: This option is only used by kubectl hooks.{% endif %} ## Ruby Hooks Instead of using a script for the hook `execute` option, you can also use a Ruby object. This provides some more control over the current process. See: [Ruby Hooks]({% link _docs/config/hooks/ruby.md %})
Version data entries
27 entries across 27 versions & 1 rubygems