Setting up a Ruby runtime environment
Getting started to write Vagrant plugins is identical to setting up a Ruby development environment.
Getting ready
It's typically good practice to develop using the target runtime. Vagrant embeds a Ruby runtime in the installed operating system package that can be used to find the proper version of Ruby to use as a development target. You can set up a Ruby environment by performing the following steps:
- Find the location of the Vagrant installation. On OS X for example, Vagrant is typically installed in
/Applications/Vagrant/
. The Vagrant installation contains a folder namedembedded/
that contains the Ruby runtime used by Vagrant. - In a terminal window, execute a version command on the embedded Ruby. To do this, change directories to
/Applications/Vagrant/embedded/bin
and execute:./ruby –version
This will return a value of the Ruby runtime. In this case, OS X package, Vagrant 1.6.5) of:
- Set up a development version of Ruby. The simplest method...