Commit Graph

19 Commits

Author SHA1 Message Date
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 09be82f1e2
Merge pull request #9778 from OverByThere/patch-1
Syntax error for running remote script
2018-05-04 09:08:56 -07:00
Dan Clarke 4b99e5676d
Syntax error for running remote script
I either got:
`syntax error, unexpected ':', expecting '}` or `wrong number of arguments (given 1, expected 0) (ArgumentError)` until I added the `=` in.
2018-05-04 15:44:31 +01:00
Richard Quadling 3da8f57d6e
Update usage.html.md
Show a `before` and an `after`.
2018-05-04 15:31:27 +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 bd133e1727
Docs updates for triggers 2018-04-20 10:51:38 -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 5e9387dca8
Add basic triggers example 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 c35e0a4f9a
Update docs with some basic trigger examples 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