Get plugin name from client

This commit is contained in:
sophia 2022-02-08 09:31:10 -06:00 committed by Paul Hinze
parent 764f5c96c5
commit e95d906f74
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 9 additions and 2 deletions

View File

@ -38,6 +38,8 @@ module Vagrant
#
# @param [Symbol] cap_name Name of the capability
def capability(cap_name, *args)
@logger.debug("running name just 'cause:")
@logger.debug("neam is: #{name}")
@logger.debug("running remote guest capability #{cap_name} with args #{args}")
if !client.has_capability?(cap_name)
raise Errors::GuestCapabilityNotFound,
@ -60,8 +62,7 @@ module Vagrant
#
# @return [Symbol]
def name
# TODO: Get name from plugin
"placeholder"
client.name
end
# Returns the parent of the guest.

View File

@ -20,6 +20,12 @@ module VagrantPlugins
def parent
run_func
end
# @return [String] plugin name
def name
c = client.name(Empty.new)
c.name
end
end
end
end