Cake addin to control Vagrant through the CLI
master |
develop |
---|---|
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.
Task("Usage")
.Does(() => {
Vagrant.Init("hashicorp/precise64");
Vagrant.Up(s => s.UseProvider("virtualbox"));
Vagrant.Suspend();
});
Task("Destroy")
.Does(() => {
Vagrant.Destroy();
DeleteFile("Vagrantfile");
});