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:
parent
62028b2df3
commit
f1d71f9481
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue