VagrantAliases.

Vagrant(ICakeContext) Method

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
CakePropertyAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
ctx ICakeContext

Return Value

Type Description
VagrantRunner