25 lines
532 B
Ruby
25 lines
532 B
Ruby
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
|