14 Commits

Author SHA1 Message Date
hashicorp-copywrite[bot]
36a312ee26
add missing license headers and update copyright file headers to BUS-1.1 2023-08-10 21:53:25 +01:00
sophia
c2d8f892ac Find type to unany objects when mapping
find_types works fine until you have a module which has the same name but different case. For example, the VagrantVmware package is HashiCorp::VagrantVMwareDesktop. All the protos are at Hashicorp::Vagrant::… So, you end up with this fun

Object.constants.select { |n| n.to_s.downcase == "hashicorp" }
=> [:HashiCorp, :Hashicorp]

So, when trying to walk down the modules to find the right type to unany to, Vagrant sometimes takes the wrong path (eg. Down the HashiCorp module instead of the Hashicorp module).

This change will keep a list of the parent modules when walking down the module list. This way if a dead end is reached then Vagrant can go a level back and keep searching for the correct class.
2022-07-26 12:22:28 -05:00
sophia
6c28de9ea9
Refactor named plugin service/client endpoints 2022-04-25 12:26:33 -05:00
Chris Roberts
e29011d0b3
Add FuncSpec module
This module provides helper methods for handling FuncSpecs
    and generating FuncSpec::Args protos. At this stage it is
    intended for use in client implementations
2022-04-25 12:26:28 -05:00
sophia
df5f7d40e8
Rename exception logger to exception transformer
The exception logger no longer logs errors. Instead it transforms
the errors into a grpc friendly format. The exception that would
have been logged at this point gets logged when the task completes.
2022-04-25 12:26:20 -05:00
Chris Roberts
1a80e6112b
Remove WithMapper module and add autoload for UsageTracker 2022-04-25 12:26:18 -05:00
Chris Roberts
262a4fa099
Add HasSeeds util module for client/service 2022-04-25 12:26:05 -05:00
Chris Roberts
e89d344770
Extract utility modules into isolated files and add more utils 2022-04-25 12:24:41 -05:00
sophia
ca824644a5
Add tests for host service 2022-04-25 12:24:41 -05:00
sophia
177b06eb22
Add TODOs for extracting capability args 2022-04-25 12:24:41 -05:00
Chris Roberts
c0304101f4
Add a helper utility for setting up the mapper 2022-04-25 12:24:38 -05:00
Chris Roberts
363a1f30c1
Add module for connection helper 2022-04-25 12:24:30 -05:00
Chris Roberts
ab1d9ab80f
Provider broker via actual method. Fix scope of exception logger. 2022-04-25 12:24:07 -05:00
Chris Roberts
356c37fd73
Isolate utility modules. Includes broker and logging helper modules. 2022-04-25 12:24:04 -05:00