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
Gets a runner to control Vagrant through the CLI
- Assembly
- Cake
.Vagrant .dll - Namespace
- Cake
.Vagrant - Containing Type
- VagrantAliases
Syntax
public static VagrantRunner Vagrant(this ICakeContext ctx)
Examples
Run `vagrant up`:
Task("Up")
.Does(() => {
Vagrant.Up();
});
Init using fluent API:
Task("Fluent-Init")
.Does(() => {
Vagrant.Init("hashicorp/precise64", settings =>
settings.ConstrainVersion("1.0.1")
.CreateMinimal()
.OutputToFile("base.box"));
});
Remarks
Roughly equivalent to the
vagrant
command.Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
ctx | ICakeContext |
Return Value
Type | Description |
---|---|
VagrantRunner |