Implement get_value rpc in vagrantfile client

This commit is contained in:
Chris Roberts 2022-07-06 12:54:59 -07:00
parent e959369a0b
commit 19b4adb3b8

View File

@ -60,6 +60,20 @@ module VagrantPlugins
result.to_ruby result.to_ruby
end end
def get_value(*path)
logger.info("getting config value for path: #{path}")
result = client.get_value(
SDK::Vagrantfile::ValueRequest.new(
path: path,
)
)
val = result.to_ruby.arguments.first
return val.value if val.is_a?(Type)
val
end
end end
end end
end end