Exemple #1
0
 /// <summary>
 ///     Forces deletion of the snapshot after restoring
 /// </summary>
 /// <remarks>Opposite of <see cref="DoNotDelete" />, included for more logical invocation</remarks>
 /// <param name="settings">The settings</param>
 /// <param name="delete">Whether to delete the snapshot. Defaults to <c>true</c>.</param>
 /// <returns></returns>
 public static VagrantSnapshotRestoreSettings Delete(this VagrantSnapshotRestoreSettings settings,
                                                     bool delete = true)
 {
     settings.DoNotDelete = !delete;
     return(settings);
 }
Exemple #2
0
 /// <summary>
 ///     Force the provisioners to run (or prevent them from doing so).
 /// </summary>
 /// <param name="settings">The settings</param>
 /// <param name="run">Whether to force provisioners to run. Defaults to <c>true</c></param>
 /// <returns>The updated settings object</returns>
 public static VagrantSnapshotRestoreSettings RunProvisioners(this VagrantSnapshotRestoreSettings settings,
                                                              bool run = true)
 {
     settings.RunProvisioners = run;
     return(settings);
 }