Implement get_value rpc in vagrantfile client
This commit is contained in:
parent
e959369a0b
commit
19b4adb3b8
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user