Commit Graph

14 Commits

Author SHA1 Message Date
Brian Cain 58ebd52f99
Add abort option to core triggers
This commit adds a new option `abort`, which when configured, will exit
the Vagrant process completely. If set to `true`, it will exit cleanly
with exit code 0. Otherwise, the exit code can be configured.
2018-09-25 09:40:36 -07:00
Brian Cain 52c3dcc70e
(#9997) Catch and allow for non-standard exit codes
Prior to this commit, the run trigger option wouldn't catch for failures
outside of the #Subprocess.execute raising exceptions. This commit fixes
that by inspecting the exit code result of the subprocess and using the
new `exit_codes` option to determine how to move forward with the
trigger.
2018-07-09 15:56:26 -07:00
Milan Stovicek 3ce7c0cf3f
Add `suspend` into a list of available actions
`suspend` action is not listed, even though it can be used and it works.

```
$ vagrant --version
Vagrant 2.1.1
```

```
config.trigger.before [:suspend] do |trigger|
  trigger.name = "Before suspend"
  trigger.run = {inline: "..."}
end
````
2018-06-13 18:51:45 +02:00
Brian Cain 83d102e708
Merge pull request #9793 from rgl/patch-2
reword the triggers only_on documentation
2018-05-07 09:30:19 -07:00
Rui Lopes f3b377bd5c
reword the triggers only_on documentation 2018-05-06 20:25:46 +01:00
Rui Lopes a3175259db
Update configuration.html.md
fix typos
2018-05-06 20:23:20 +01:00
Brian Cain afc074fb11
Document valid trigger commands 2018-04-24 11:23:13 -07:00
Brian Cain 1eabd0901e
Website updates based on feedback 2018-04-23 09:14:31 -07:00
Brian Cain e25cb51f15
Properly print warnings on config settings that aren't supported 2018-04-20 10:51:38 -07:00
Brian Cain 6f2b5a9fa0
Update trigger docs 2018-04-20 10:51:38 -07:00
Brian Cain 4e5e4d0214
Use args setting for run option in trigger 2018-04-20 10:51:38 -07:00
Brian Cain a20404599e
Add trigger documentation 2018-04-20 10:51:38 -07:00
Brian Cain c832168846
Update trigger config docs 2018-04-20 10:51:38 -07:00
Brian Cain 09bb98679c
Add basic website pages for triggers 2018-04-20 10:51:38 -07:00