Hello everybody,

for provisioning purposes, I need to get the version string (number) of the 
current (started up) machine from my Vagrantfile.I consult the official 
docs, about this question but I can't find something related to it.

My first thought was, to simply get it by "vagrant box list", and pick the 
latest installed box, with something like: %x(vagrant box 
list).split(',').last.gsub(')','').
But of course this isn't exactly what I want. On every start up, Vagrant 
check if there is an update available for the box, so maybe there is an 
easy way to access these builtin function and get the needed values. I read 
something about "#{machine.box.version}" but I can't find a way, to get it. 

Maybe you guys, have an idea how to get these version information. Many 
thanks in advance!


-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to