VagrantSnapshotRunner Class

Summary

Wrapper around the vagrant snapshot subcommands
Assembly
Cake.Vagrant.dll
Namespace
Cake.Vagrant.Commands
Base Types
graph BT Type-->Base0["VagrantCommandRunner"] click Base0 "/api/Cake.Vagrant.Commands/VagrantCommandRunner" Base0-->Base1["Object"] Type["VagrantSnapshotRunner"] class Type type-node

Syntax

public class VagrantSnapshotRunner : VagrantCommandRunner

Constructors

Properties

Name Value Summary
Log ICakeLog
Logging output
Inherited from VagrantCommandRunner
Runner Action<VagrantSettings, ProcessArgumentBuilder>
Action to trigger invocation of the CLI
Inherited from VagrantCommandRunner
Settings VagrantSettings
Settings for invocation of the Vagrant CLI
Inherited from VagrantCommandRunner

Methods

Name Value Summary
Delete(string) void
This command will delete the named snapshot.
Pop(Action<VagrantSnapshotRestoreSettings>) void
This command is the inverse of Push(): it will restore the pushed state.
Push() void
This takes a snapshot and pushes it onto the snapshot stack.
Restore(string, Action<VagrantSnapshotRestoreSettings>) void
This command restores the named snapshot.
Save(string) void
This command saves a new named snapshot.

Extension Methods

Name Value Summary
Dump<VagrantSnapshotRunner>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<VagrantSnapshotRunner>(VagrantSnapshotRunner[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<VagrantSnapshotRunner>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<VagrantSnapshotRunner>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<VagrantSnapshotRunner>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<VagrantSnapshotRunner>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin