sophia
e70a25e24f
Use the scoped hash override to get overriden synced folder config
2022-07-07 12:30:24 -05:00
sophia
ffc2dd729b
Use more generic hash for folder options. This will allow using exisiting mappers
2022-07-07 12:30:24 -05:00
sophia
b17c36c7c7
Fix typo
2022-07-07 12:30:24 -05:00
sophia
e8c0587c85
go generate
2022-07-07 12:30:24 -05:00
Sophia Castellarin
0b53e06687
Merge pull request #297 from hashicorp/port-command-fix
...
Use remote provider
2022-07-07 12:21:48 -05:00
sophia
f1af42a7fc
Don't use hash with indifferent access when converting hash
...
The HashWithIndifferentAccess will change all keys to strings when
merged with another regular hash. This causes errors in cases where
hashes are merged, for example in the action builder. Symbol/String
type data is kept over the wire, so there is no need to make the
mapped hash a HashWithIndifferentAccess.
2022-07-07 11:50:03 -05:00
sophia
73801703e7
Pass machine to provider capabilities
2022-07-07 11:49:57 -05:00
Paul Hinze
522c56f0c6
Merge pull request #305 from hashicorp/use-default-synced-folder
...
Fix method for getting default synced folder type
2022-07-07 11:34:27 -05:00
Chris Roberts
1c26a4abb0
Merge pull request #300 from hashicorp/optimize-ruby-command-list
...
Optimize command list generation
2022-07-07 09:29:15 -07:00
Paul Hinze
91478e9e0a
Fix method for getting default synced folder type
...
As a part of a series of larger changes the default synced folder type
accidentally got wired up to DefaultProvider instead of its dedicated
defaultSyncedFolderType() method.
This was working fine for "virtualbox" where the provider name and the
synced folder name are both the same, but it was causing virtualbox
synced folders to be selected when using the "docker" provider and
making things break.
This is one necessary step to get machine lifecycles working again with
Docker.
2022-07-07 11:24:53 -05:00
Sophia Castellarin
186824a568
Merge pull request #302 from hashicorp/private-network
...
Rely on string/symbol maps for hash mapping
2022-07-06 13:20:41 -05:00
sophia
5709027c45
Update mapper tests for not returning HashWithIndifferentAccess
2022-07-01 13:56:50 -05:00
Paul Hinze
fe0b319004
Merge pull request #298 from hashicorp/fix-no-vagrantfile-commands
...
Fix init and other commands that run without a project / vagrantfile
2022-07-01 13:16:58 -05:00
sophia
eeba305399
Rely on string/symbol maps for hash mapping
...
Relying on HashWithIndifferentAccess in Hash mappers results in
errors when hashes get merged in Ruby. When merges between regular
hashes and HashWithIndifferentAccess happens, then all the keys
from HashWithIndifferentAccess are transformed to strings.
2022-07-01 12:47:12 -05:00
Paul Hinze
17be9ba354
bump sdk
2022-07-01 12:23:15 -05:00
Paul Hinze
fb2a102c71
Fix init and other commands that run without a project
...
The Basis needs to be able to respond to Vagrantfile() and
DefaultProvider() to make it through Vagrant::Environment
initialization.
Depends on https://github.com/hashicorp/vagrant-plugin-sdk/pull/178
2022-07-01 11:56:08 -05:00
Chris Roberts
25d00b4ff4
Merge pull request #301 from hashicorp/sparse-vagrantfile
...
Handle sparse Vagrantfile
2022-07-01 09:03:48 -07:00
Chris Roberts
6aa50189a2
Return empty results when no content to parse
2022-07-01 08:57:28 -07:00
sophia
52d37217ac
Use cache from CommandServe module
2022-06-30 16:57:41 -05:00
sophia
20ec85b021
Use remote provider
2022-06-30 16:57:41 -05:00
Chris Roberts
2d08919314
Merge pull request #296 from hashicorp/case-of-the-missing-target
...
Set target configuration from vagrantfile before save
2022-06-30 12:30:55 -07:00
Chris Roberts
8b7d702ddd
Check existing target state and remove if not created
2022-06-30 11:16:23 -07:00
Chris Roberts
e7df8b6c52
Properly delete the target from the project
2022-06-30 11:16:09 -07:00
Chris Roberts
b365827f73
Save updated project after deleting target
2022-06-30 11:15:56 -07:00
sophia
065d2f2ff1
Bump sdk
2022-06-30 11:23:50 -05:00
Sophia Castellarin
f54861872e
Merge pull request #293 from hashicorp/default-communicator
...
Get communicator specified in Vagrantfile
2022-06-30 10:42:01 -05:00
sophia
b01ace79f0
Set default communicator constant
2022-06-30 09:13:55 -05:00
sophia
935c665412
Add tests for default communicator
2022-06-30 09:13:53 -05:00
sophia
22b2d52e00
Get communicator specified in Vagrnatfile
2022-06-30 09:13:17 -05:00
Sophia Castellarin
6669cd0f87
Merge pull request #288 from hashicorp/docker-provider-up
...
Docker provider up
2022-06-30 09:12:28 -05:00
Chris Roberts
a146f3beac
Fetch all ruby commands in single request
2022-06-29 16:14:19 -07:00
Chris Roberts
e1d7962ee8
Generated proto updates for get commands
2022-06-29 16:14:01 -07:00
Chris Roberts
067e6aeed1
Add get commands implementation to client and server
2022-06-29 16:13:36 -07:00
Chris Roberts
29a5c1b855
Add rpc for getting commands
2022-06-29 16:12:36 -07:00
Chris Roberts
ffa10b4d85
Return integer value from serve command
2022-06-29 16:11:53 -07:00
Chris Roberts
ced8f947f8
Modify ordering of attributes
2022-06-29 16:11:30 -07:00
sophia
8859e2e03b
Add test communicator plugin to guest detection test
2022-06-29 17:23:43 -05:00
sophia
adadf26c9c
Check if communicator is available before detecting guests
2022-06-29 17:23:43 -05:00
sophia
e0a30f9ba7
Raise error if communicator is not ready when getting guest from machine
2022-06-29 17:23:43 -05:00
sophia
f4d3f38921
Fix type in communicator#ready funcspec
2022-06-29 17:23:42 -05:00
Sophia Castellarin
a08204d4ba
Merge pull request #299 from hashicorp/fix-ruby-tests
...
Fix ruby tests
2022-06-29 17:23:23 -05:00
sophia
1913864212
Update remote machine test for fully go backed machine
2022-06-29 16:54:57 -05:00
sophia
0372da5f5f
Update mapper tests for hash with indifferent access
2022-06-29 16:43:19 -05:00
sophia
67a5c43873
Add Machine state direct converter
2022-06-29 16:03:22 -05:00
sophia
df8f519337
Fix guest and host service tests
2022-06-29 16:01:40 -05:00
Chris Roberts
aec4d13e21
Set configuration after successful init
2022-06-29 11:46:41 -07:00
Chris Roberts
8c40214d61
Update project to use cleanup, not shutdown targets
2022-06-29 11:46:41 -07:00
Paul Hinze
986e3fb258
Merge pull request #292 from hashicorp/box-collection-nit
...
Scope down rescue on BoxCollection.find
2022-06-28 15:23:33 -05:00
Chris Roberts
822b2af8a5
Set target configuration from vagrantfile before save
2022-06-28 11:07:52 -07:00
Chris Roberts
f9dd348847
Merge pull request #295 from hashicorp/target-load-stored-configuration
...
Testing fixes and target loading
2022-06-28 10:13:52 -07:00