mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-22 01:11:43 -05:00
12 lines
313 B
Go
12 lines
313 B
Go
package config
|
|
|
|
// Hook is the configuration for a hook that runs at specified times.
|
|
type Hook struct {
|
|
When string `hcl:"when,attr"`
|
|
Command []string `hcl:"command,attr"`
|
|
OnFailure string `hcl:"on_failure,optional"`
|
|
}
|
|
|
|
func (h *Hook) ContinueOnFailure() bool {
|
|
return h.OnFailure == "continue"
|
|
}
|