VagrantInitSettingsExtensions.

ConstrainVersion(VagrantInitSettings, string) Method

Summary

Sets the box version or box version constraint to add to the Vagrantfile

Syntax

public static VagrantInitSettings ConstrainVersion(this VagrantInitSettings settings, string version)

Parameters

Name Type Description
settings VagrantInitSettings The settings
version string Box version or version constraint

Return Value

Type Description
VagrantInitSettings The updated settings object