Being implementing project client in ruby runtime

This commit is contained in:
Chris Roberts 2021-05-25 13:30:15 -07:00 committed by Paul Hinze
parent 6994f5d5a7
commit 1b0214debc
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -0,0 +1,21 @@
module VagrantPlugins
module CommandServe
module Client
class Project
attr_reader :client
def initialize(conn)
@client = SDK::ProjectService::Stub.new(conn, :this_channel_is_insecure)
end
def self.load(raw_project)
m = SDK::Args::Project.decode(raw_project)
conn = Broker.instance.dial(m.stream_id)
self.new(conn.to_s)
end
end
end
end
end