Skip to content

cake-contrib/Cake.Vagrant

Repository files navigation

Cake.Vagrant

Cake addin to control Vagrant through the CLI

master develop
VSTS Build Status VSTS Develop Status

Getting started

You can find documentation either on Cake's site or here on GitHub. This should be enough to get started with Vagrant assuming you're familiar with the CLI.

You may find Vagrant's documentation helpful as well, both the Command line and Getting started guides.

Sample script

Task("Usage")
    .Does(() => {
        Vagrant.Init("hashicorp/precise64");
        Vagrant.Up(s => s.UseProvider("virtualbox"));
        Vagrant.Suspend();
    });

Task("Destroy")
    .Does(() => {
        Vagrant.Destroy();
        DeleteFile("Vagrantfile");
    });