2022-04-25 12:26:29 -05:00

24 lines
471 B
Ruby

module VagrantPlugins
module CommandServe
class Client
class Push < Client
# Generate callback and spec for required arguments
#
# @return [SDK::FuncSpec, Proc]
def push_func
spec = client.push_spec(Empty.new)
cb = proc do |args|
client.push(args)
end
[spec, cb]
end
# Execute push
def push
run_func
end
end
end
end
end