14743 Commits

Author SHA1 Message Date
Chris Roberts
cefb514f77
If running as server enable server mode before setting up 2022-04-25 12:23:59 -05:00
Chris Roberts
d501d77005
Add accessors to get to cli components 2022-04-25 12:23:59 -05:00
Chris Roberts
074478c876
Include server address within environment for proper mapping 2022-04-25 12:23:59 -05:00
Chris Roberts
d9893c1a13
Return immediately on error to prevent inspecting nil result 2022-04-25 12:23:59 -05:00
Chris Roberts
bba557c29d
Close the client to shutdown the plugin and prevent hang.
This also updates the Ruby runtime usage to pass the ClientProtocol
    instead of the full client since after init we only need it for
    dispensing plugins.
2022-04-25 12:23:59 -05:00
Chris Roberts
b601872287
Update protos 2022-04-25 12:23:59 -05:00
Chris Roberts
62ca9faa43
Use connection ID from broker for terminal UI setup 2022-04-25 12:23:59 -05:00
Chris Roberts
e64f07b109
Include the broker streamer service to handled services 2022-04-25 12:23:58 -05:00
Chris Roberts
63f0b61ed6
Add simple broker implementation for use within Ruby runtime 2022-04-25 12:23:58 -05:00
Chris Roberts
db61d10bbe
Add generate directive for GRPC broker proto 2022-04-25 12:23:58 -05:00
Chris Roberts
cffd771288
Move Vagrant runtime out of server and into runner (via client startup) 2022-04-25 12:23:58 -05:00
sophia
edcb9e08bd
Get help and flags for subcommands 2022-04-25 12:23:58 -05:00
sophia
7472c2324b
Refactor 2022-04-25 12:23:58 -05:00
sophia
88527f1dce
Get help for command at any nesting 2022-04-25 12:23:58 -05:00
sophia
633528318d
Get help from ui output 2022-04-25 12:23:58 -05:00
sophia
0c1e44f553
Get help from commands that have subcommands 2022-04-25 12:23:58 -05:00
Chris Roberts
4343264054
Define all go generate directives at the repo root 2022-04-25 12:23:58 -05:00
Chris Roberts
26ac4065d2
Remove go generate directives from the server.go file 2022-04-25 12:23:58 -05:00
Chris Roberts
057b10709e
Add submodule for common protos 2022-04-25 12:23:57 -05:00
Chris Roberts
4f905203ed
Remove vendor from ignore list 2022-04-25 12:23:57 -05:00
Chris Roberts
155d9a4dc6
Remove submodule file 2022-04-25 12:23:57 -05:00
sophia
aff0fa9494
Include vendored go libs 2022-04-25 12:23:57 -05:00
sophia
c1ce1016c7
Render ruby protobufs to ruby lib 2022-04-25 12:23:57 -05:00
sophia
c3ee750db1
Add gogo 2022-04-25 12:23:57 -05:00
sophia
20fbe05c23
Log exceptions from grpc services to file 2022-04-25 12:23:57 -05:00
sophia
bb6174d305
Log output to file 2022-04-25 12:23:57 -05:00
sophia
8e1e08b9ee
Remove logger 2022-04-25 12:23:57 -05:00
sophia
b54d425038
Update Ruby protos for updates to sdk + pick up environment service 2022-04-25 12:23:57 -05:00
Chris Roberts
55d57595c4
Check lookup for not found error and allow it to fall through 2022-04-25 12:23:56 -05:00
Chris Roberts
cbc2ecac0a
Generated proto updates 2022-04-25 12:23:56 -05:00
Chris Roberts
f2ef8110bb
Accept command arguments and pass them when executing internal commands 2022-04-25 12:23:56 -05:00
Chris Roberts
64ccbe9121
Updates for ID and state handling 2022-04-25 12:23:56 -05:00
Chris Roberts
70a2c977d9
Stub in just enough in the thin machine to get things working 2022-04-25 12:23:56 -05:00
Chris Roberts
4d0959e10c
Match up constant with proto changes. Use reader for client. 2022-04-25 12:23:56 -05:00
Chris Roberts
93f3c70dd0
Update load path modifications and requires for new proto path 2022-04-25 12:23:56 -05:00
Chris Roberts
fc129977af
Add very basic thin machine implementation against client 2022-04-25 12:23:56 -05:00
Chris Roberts
1a6aeb5811
Update proto file locations 2022-04-25 12:23:56 -05:00
Chris Roberts
a37d1b70a5
Remove client autoload since it does not exist here 2022-04-25 12:23:56 -05:00
Chris Roberts
9a9331ed4d
Add the machine client back in here isolate by resource id 2022-04-25 12:23:56 -05:00
Chris Roberts
548a0339df
Update name and use constant alias 2022-04-25 12:23:56 -05:00
Chris Roberts
28ebbce108
Update to use the service info helper 2022-04-25 12:23:55 -05:00
Chris Roberts
afa31bff58
Provide client and service loader files
The service also includes a service info helper class that
    can wrap requests and extract execution context of request.
    This includes the vagrant service endpoint for connecting
    a client back to the service and the scope of the request.
    It also provides a helper for creating and reusing clients.
2022-04-25 12:23:55 -05:00
Chris Roberts
ac34b3bcdc
Clean up requires, use autoload, set vagrant in server mode 2022-04-25 12:23:55 -05:00
Chris Roberts
b7616bdd5d
Add generated proto files for the vagrant service 2022-04-25 12:23:55 -05:00
Chris Roberts
c09fc7be1e
Whitespace cleanup 2022-04-25 12:23:55 -05:00
Chris Roberts
c887a18437
Allow UI instance to be provided to environment and used properly 2022-04-25 12:23:55 -05:00
Chris Roberts
7b70925f47
Provide thick and thin implementations of machine 2022-04-25 12:23:55 -05:00
Chris Roberts
03ac9cd015
Provide machine implementation based on server mode 2022-04-25 12:23:55 -05:00
Chris Roberts
4701cb336e
Add helpers to flag when running in server mode 2022-04-25 12:23:55 -05:00
Chris Roberts
7350b85902
Implement enough of the command service to get things working.
Also updates the UI setup so that we can properly get the
    output streaming back to us.
2022-04-25 12:23:55 -05:00