Being implementing project client in ruby runtime
This commit is contained in:
parent
6994f5d5a7
commit
1b0214debc
21
plugins/commands/serve/client/project.rb
Normal file
21
plugins/commands/serve/client/project.rb
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user