This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Vagrant.
Summary
Destroy the newly created machine if a fatal, unexpected error occurs.
This will only happen on the first vagrant up.
- Assembly
- Cake
.Vagrant .dll - Namespace
- Cake
.Vagrant .Settings - Containing Type
- Vagrant
Up Settings Extensions
Syntax
public static VagrantUpSettings DestroyOnError(this VagrantUpSettings settings, bool destroy = true)
Parameters
| Name | Type | Description |
|---|---|---|
| settings | VagrantUpSettings | The settings |
| destroy | bool | >true to destroy the machine. Defaults to true |
Return Value
| Type | Description |
|---|---|
| VagrantUpSettings | The updated settings object |
