String vagrantfileContent) {
File vagrantFile = new File(vagrantDir, vagrantfileName);
try {
FileUtils.writeStringToFile(vagrantFile, vagrantfileContent, false);
} catch (IOException e) {
throw new VagrantException("Error while creating "
+ this.getClass().getSimpleName(), e);
}
Vagrant vagrant = new Vagrant(true);
environment = vagrant.createEnvironment(vagrantDir);
}