This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Vagrant.
Summary
Wrapper around Vagrant's CLI functionality for creating, starting and managing VMs
- Assembly
- Cake
.Vagrant .dll - Namespace
- Cake
.Vagrant - Base Types
-
- Tool
<VagrantSettings>
- Tool
graph BT
Type-->Base0["Tool<VagrantSettings>"]
Type["VagrantRunner"]
class Type type-node
Syntax
public class VagrantRunner : Tool<VagrantSettings>
Constructors
Name | Summary |
---|---|
VagrantRunner |
Initializes a new instance of the VagrantRunner class
|
Properties
Name | Value | Summary |
---|---|---|
Box | VagrantBoxRunner |
Provides access to `vagrant box` subcommands
|
Docker | VagrantDockerRunner |
Provides access to `vagrant docker` subcommands
|
Plugin | VagrantPluginRunner |
Provides access to `vagrant plugin` subcommands
|
Snapshot | Vagrant |
Provides access to `vagrant snapshot` subcommands
|
Methods
Name | Value | Summary |
---|---|---|
Destroy |
void |
This command stops the running machine Vagrant is managing and destroys all resources that were created during the
machine creation process.
|
FromPath |
VagrantRunner |
Sets the working directory for vagrant commands
|
Get |
IEnumerable |
Gets alternative file paths which the tool may exist in
|
Get |
IEnumerable |
Gets the possible names of the tool executable.
|
GetToolName |
string |
Gets the name of the tool.
|
GetWorkingDirectory |
DirectoryPath |
Gets the working directory.
Defaults to the currently set working directory.
|
Halt |
void |
This command shuts down the running machine Vagrant is managing.
|
Init |
void |
This initializes the current directory to be a Vagrant environment by creating an initial Vagrantfile if one does
not already exist.
|
Init |
void |
Initializes the current directory for Vagrant by creating an initial Vagrantfile
|
Package |
void |
This packages a currently running VirtualBox environment into a re-usable box.
|
Package |
void |
This packages a currently running VirtualBox environment into a re-usable box.
|
Package |
void |
This packages a currently running VirtualBox environment into a re-usable box.
|
PowerShell |
void |
This command opens a PowerShell connection to your default machine to run the provided command
|
PowerShell |
void |
This command opens a PowerShell connection to the specified machine to run the provided command
|
Reload |
void |
The equivalent of running a halt followed by an up.
|
Reload |
void |
The equivalent of running a halt followed by an up.
|
Reload |
void |
The equivalent of running a halt followed by an up.
|
Resume |
void |
This resumes a Vagrant managed machine that was previously suspended.
|
Resume |
void |
This resumes a Vagrant managed machine that was previously suspended.
|
Resume |
void |
This resumes a Vagrant managed machine that was previously suspended.
|
SSH |
void |
This command opens an SSH connection to your default machine to run the provided command
|
SSH |
void |
This command opens an SSH connection to the specified machine to run the provided command
|
Suspend |
void |
This suspends the guest machine Vagrant is managing, rather than shutting it down
|
Up |
void |
This command creates and configures the default machine according to your Vagrantfile, and the specified settings
|
Up |
void |
This command creates and configures guest machines according to your Vagrantfile, and the specified settings.
|
Up |
void |
This command creates and configures guest machines according to your Vagrantfile, using the default settings
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|