Get plugin name from client
This commit is contained in:
parent
764f5c96c5
commit
e95d906f74
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user