Get provider from remote machine

This commit is contained in:
sophia 2022-02-17 10:26:36 -06:00 committed by Paul Hinze
parent f183a8a810
commit b7d12a0907
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -60,6 +60,18 @@ module VagrantPlugins
)
end
# Return [Provider] provider for the machine
def provider
p = client.provider(Empty.new)
Provider.load(p, broker: broker)
end
# Return [Provider] provider for the machine
def provider_name
p = client.provider_name(Empty.new)
p.name
end
# Force a reload of the machine state
def reload
client.reload(Empty.new)