/// <summary> /// The provider-specific box to remove with the given name. /// </summary> /// <param name="settings">The settings</param> /// <param name="provider">The specific provider to remove</param> /// <returns>The updated settings object</returns> public static VagrantBoxRemoveSettings UseProvider(this VagrantBoxRemoveSettings settings, string provider) { settings.Provider = provider; return(settings); }
/// <summary> /// Sets the version constraint for the box to remove /// </summary> /// <remarks>See <see cref="VagrantBoxAddSettings.Version" /> for more information</remarks> /// <param name="settings">The settings</param> /// <param name="version">Version constraint to match against</param> /// <returns>The updated settings object</returns> public static VagrantBoxRemoveSettings ConstrainVersion(this VagrantBoxRemoveSettings settings, string version) { settings.BoxVersion = version; return(settings); }
/// <summary> /// Remove all available versions of a box. /// </summary> /// <param name="settings">The settings</param> /// <returns>The updated settings object</returns> public static VagrantBoxRemoveSettings RemoveAll(this VagrantBoxRemoveSettings settings) { settings.RemoveAll = true; return(settings); }
/// <summary> /// Forces removing the box even if an active Vagrant environment is using it. /// </summary> /// <param name="settings">The settings</param> /// <param name="force"><c>true</c> to force removal. Defaults to <c>true</c></param> /// <returns>The updated settings object</returns> public static VagrantBoxRemoveSettings Force(this VagrantBoxRemoveSettings settings, bool force = true) { settings.Force = force; return(settings); }