15670 Commits

Author SHA1 Message Date
sophia
85362faaed Output deprecated message for --timestamp and --debug-timestamp flags 2022-05-24 12:11:08 -05:00
sophia
1137b9d467 Recognize debug flags 2022-05-24 12:11:08 -05:00
Sophia Castellarin
c4b3a77482
Merge pull request #273 from hashicorp/no-tty-ui
Use non interactive ui when `--no-tty` flag provided
2022-05-24 12:10:46 -05:00
sophia
bad86ca986 Bump sdk 2022-05-24 09:32:40 -05:00
sophia
2c0f43db3b Make flags that are only defined as --no- work 2022-05-23 11:41:08 -05:00
sophia
0b6781444a Resolve issue with Vagrant core providing more flag options than Vagrant legacy
This occurs when boolean flags in legacy Vagrant does
not define both a positive and negative boolean flag.
For example, --force and --no-force flags
2022-05-18 15:49:17 -05:00
sophia
d062e03d97 Force all boolean flags to have a negative alias 2022-05-18 15:13:58 -05:00
sophia
28beec7bad Set alias for boolean flags that have a 'no-' option 2022-05-17 15:04:07 -05:00
sophia
dc1687e1ab go generate 2022-05-17 15:03:24 -05:00
sophia
887903c0e1 Set aliases for command flags 2022-05-17 14:06:04 -05:00
sophia
584e7d2913 Make flag --no-tty 2022-05-17 14:04:18 -05:00
Paul Hinze
2adb438eee
ci: Ensure cleanup runs after notify completes
Without declaring it as a dependency the job can run in parallel and delete the workspace out from under the notify job.

Using format from this example: https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow#example-not-requiring-successful-dependent-jobs
2022-05-16 17:50:00 -05:00
sophia
108275de21 Set default values for flags 2022-05-16 16:19:40 -05:00
sophia
1b8246c28f Set base command flag data 2022-05-16 14:56:22 -05:00
sophia
df25af809c Use no-tty flag 2022-05-16 13:52:52 -05:00
sophia
9094ac5869 Update donothing command to use localizer to just translate message 2022-05-16 13:51:57 -05:00
sophia
d708bab84a Add error message for errors originating from a remote 2022-05-13 17:14:50 -05:00
sophia
26fac3e1d9 Setup noninteractive ui for the base command if the --no-tty falg is provided 2022-05-13 16:49:30 -05:00
Paul Hinze
ebd03d604b
ci: Reorder spectesting to fix success notify
Turns out you can't run a script in the workdir after you `rm -rf` the
workspace!
2022-05-13 16:23:52 -05:00
sophia
7a999d1f06 Add tty flag and set noninteractive terminal 2022-05-13 13:46:36 -05:00
Sophia Castellarin
0c7d5f2eee
Merge pull request #264 from hashicorp/msg-localization
Msg localization
2022-05-13 12:26:53 -05:00
sophia
4435a23158 Bump sdk 2022-05-13 12:23:26 -05:00
Sophia Castellarin
a65981fe5b
Merge pull request #271 from hashicorp/no-refresh-project
Don't refresh the project more then necessary
2022-05-12 17:01:49 -05:00
sophia
361f4ba9ba Load all localization files and allow sdk to choose the local language to use 2022-05-11 12:59:41 -05:00
sophia
d9b2cb16e0 go mod tidy 2022-05-11 12:59:39 -05:00
sophia
5bfd9bda6c Enable english and spanish output for donothing command 2022-05-11 12:59:05 -05:00
sophia
0c91c47325 Add i18n, text libs and bump go bindata 2022-05-11 12:59:05 -05:00
sophia
bb30ff94ff Don't refresh the project more then necessary
The project does not need to be retreived from the db every time
it is queried for data. However, it does need to be updated whenever
a target is initialized from the project (eg. an upsert machine
action happens). This is because upserting a target will update the
associated project. Leaving the core.Project with stale data
unless it is refreshed.
2022-05-10 15:24:14 -05:00
Paul Hinze
387470e67f
Merge pull request #270 from hashicorp/ci-slack-on-pass
ci: Separate log pulling and notify on success
2022-05-10 11:17:17 -05:00
Paul Hinze
afd0346dc1
ci: Remove unnecessary vars
per https://github.com/hashicorp/vagrant-ruby/pull/270#discussion_r867266809
2022-05-10 11:14:28 -05:00
Paul Hinze
ca57fb223a
ci: Simplify log pull
per https://github.com/hashicorp/vagrant-ruby/pull/270#discussion_r867266248
2022-05-10 11:13:40 -05:00
Paul Hinze
31c2390533
ci: Separate log pulling and notify on success
* Without being a separate task, log pull won't happen on failure
 * Add a job at the end for notifying on success - since these only run
   nightly and on manual trigger, seems like it'd be nice to get
   notified of something happy!
2022-05-06 16:58:51 -05:00
Sophia Castellarin
9b13515602
Merge pull request #267 from hashicorp/project-cp
Fill in Ruby Remote Environment and Project Client
2022-05-06 16:14:46 -05:00
Paul Hinze
8ff4fd674c
Add back in some respond_to checks
Helps Environment::Remote to work when it's handed a Basis client for
operations like `box list` and `vagrant init`.
2022-05-06 15:23:54 -05:00
sophia
ba1384eb88 Fix machine mappers 2022-05-04 11:51:43 -05:00
sophia
b0b3dc2a47 Remove unused target fields 2022-05-04 11:25:56 -05:00
sophia
e020c6600e Hacks to let a remote machine be instantiated with or with out a client 2022-05-04 11:25:54 -05:00
sophia
a40d890f74 Instantiate provider for remote machine 2022-05-04 11:25:18 -05:00
sophia
da3ab7f9b3 Refresh project when querying for project info
It is not guaranteed which project is ever being used. So whenever
some project property is queried make sure to refresh the project
by getting the latest one from the database.
2022-05-04 11:23:46 -05:00
sophia
6c10944c52 Clean up unused functions 2022-05-04 11:23:12 -05:00
sophia
053d658e52 Get default provider from go side
For now the go side will just return a hard coded value for the
default provider. It should be implementing the algorithm defined
at https://www.vagrantup.com/docs/providers/basic_usage.html#default-provider
2022-05-04 11:23:12 -05:00
sophia
92a0b1c541 Allow remote machine to be initialized with just a machine client 2022-05-04 11:23:06 -05:00
sophia
31393eb3a9 Fill in some missing target client functions 2022-05-04 11:22:41 -05:00
sophia
6d1359b1f0 Get Provider from target 2022-05-04 11:22:41 -05:00
sophia
0117c01e4b Fill in environment remote class 2022-05-04 11:22:41 -05:00
sophia
f340e192f2 Fill in project ruby client 2022-05-04 11:22:41 -05:00
Sophia Castellarin
b842f6841a
Merge pull request #259 from hashicorp/finish-machine
Finish machine
2022-05-04 10:17:12 -05:00
sophia
07e3f7e804 Fix machine state tests 2022-05-04 09:45:51 -05:00
sophia
fa561cab29 Fill in mock machine client methods 2022-05-04 09:32:36 -05:00
sophia
4932932b2b Bump sdk 2022-05-04 09:32:36 -05:00