Sha256: b61f1e7c5bf4502da048a94fe573638a185df47610346f6a844c918062862d52
Contents?: true
Size: 834 Bytes
Versions: 17
Compression:
Stored size: 834 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
17 entries across 17 versions & 1 rubygems