Docs updates for triggers

This commit is contained in:
Brian Cain 2018-04-06 11:34:23 -07:00
parent e25cb51f15
commit bd133e1727
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 4 additions and 5 deletions

View File

@ -33,16 +33,15 @@ config.trigger.before :up, :destroy, :halt, :package do |trigger|
end
```
Alternatively, the key `:all` could be given which would run the trigger for every
Vagrant command. This trigger will run before or after every Vagrant command. If
there is a command you don't want the trigger to run on, you can ignore that
command with the `ignore` option.
Alternatively, the key `:all` could be given which would run the trigger before
or after every Vagrant command. If there is a command you don't want the trigger
to run on, you can ignore that command with the `ignore` option.
```ruby
# single command trigger
config.trigger.before :all do |trigger|
trigger.info = "Running a before trigger!"
trigger.ignore = [:destroy, :package]
trigger.ignore = [:destroy, :halt]
end
```