28 lines
601 B
Ruby
28 lines
601 B
Ruby
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
module VagrantPlugins
|
|
module CommandServe
|
|
class Client
|
|
class Host < Client
|
|
include CapabilityPlatform
|
|
# Generate callback and spec for required arguments
|
|
#
|
|
# @return [SDK::FuncSpec, Proc]
|
|
def parent_func
|
|
spec = client.parent_spec(Empty.new)
|
|
cb = proc do |args|
|
|
client.parent(args).parent
|
|
end
|
|
[spec, cb]
|
|
end
|
|
|
|
# @return [String] parent
|
|
def parent
|
|
run_func
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|