VagrantUpSettingsExtensions.

DestroyOnError(VagrantUpSettings, bool) Method

Summary

Destroy the newly created machine if a fatal, unexpected error occurs. This will only happen on the first vagrant up.

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