Skip to content

davglass/vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant for Node.js

This module is a programatic wrapper around the vagrant CLI tool.

Note: vagrant must be installed to use this, it's only a wrapper

Installation

npm i vagrant

Usage

All commands are run with child_process.spawn and the stdio is set to inherit passing along process.env.

var vagrant = require('vagrant');

//From a dir with a Vagrantfile, this will ssh into the VM
vagrant.ssh(function(code) {
    //vagrant is done
});

vagrant.up(function(code) {
    //vagrant is done
});

//Arguments passed as an array
vagrant.init(['foo', 'http://foobar.com'], function(code) {
    //vagrant is done
});

Build Status

Build Status

Node Badge

NPM

About

Node.js passthru for vagrant CLI access

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages