core: Reintroduce `name` attribute for the `Guest`

Maintain compatibility for vagrant-vbguest plugin which uses it.
vagrant-vbguest doesn't use the caps system (to keep compatibility with
older Vagrant versions), but includes similar functionality itself.
This commit is contained in:
Teemu Matilainen 2014-01-09 00:26:51 -03:00
parent 62028b2df3
commit f1d71f9481
1 changed files with 7 additions and 0 deletions

View File

@ -45,5 +45,12 @@ module Vagrant
def ready? def ready?
!!capability_host_chain !!capability_host_chain
end end
# Returns the specified or detected guest type name
#
# @return [Symbol]
def name
capability_host_chain[0][0]
end
end end
end end