I'd like to make calls to vagrant's API through a ruby program,like so:
puts Vagrant.constants
How can i include vagrant at this level ? Am somewhat new to ruby, but I see there are a lot of libraries in vagrant, and am not sure what the common way to call such libraries or to include them recursively would be - maybe there is a dynamic way to include vagrant libraries into an application using the gem api ?
UPDATE : Vagrant doesnt support Gems ?
Some of the comments below have implied that maybe declaring vagrant as a Gem is a solution to this. however, when attempting to setup vagrant as a gemfile dependency, I noticed this error message:
Thus, I think there must be a better way to add vagrant as a ruby dependency, without resorting to a gem file.