Chris Roberts
4bcef5de84
Update initial logger configuration to properly apply
2022-04-25 12:26:19 -05:00
Chris Roberts
1b8686d471
Use configurator for level configuration
2022-04-25 12:26:19 -05:00
Chris Roberts
fb1dc2cc59
Load log4r patches at startup
2022-04-25 12:26:19 -05:00
sophia
78fbd12da9
Use remote plugin manager when in server mode
2022-04-25 12:26:13 -05:00
sophia
d5007d4d85
Use remote plugin module when in server mode
2022-04-25 12:26:13 -05:00
Chris Roberts
819a4d28a4
Reconfigure legacy vagrant to utilize hclog
2022-04-25 12:24:46 -05:00
sophia
bb6174d305
Log output to file
2022-04-25 12:23:57 -05:00
sophia
854a2a4022
Just get the flag names
2022-04-25 12:23:55 -05:00
Chris Roberts
02b08ac12c
Remove option parser modifications for storing flags
2022-04-25 12:23:54 -05:00
sophia
1109d89616
Collect flag information
2022-04-25 12:23:54 -05:00
Chris Roberts
e7a6f397da
Updates for Ruby 3.0
2021-06-21 15:57:46 -07:00
Chris Roberts
80ec78929a
Adjust syntax on method
2021-03-09 08:05:55 -08:00
Chris Roberts
034cb8c59e
Update net-ssh constraint to non-prerelease version
...
To prevent resolution issues with the introduction
of a prerelease constraint, update the net-ssh constraint
to be a minimum at the latest release. Include monkey
patches to include support for wanted host key algos.
The monkey patches are only applied to the latest
net-ssh currently and will be ignored once the current
prerelease has been fully released.
2021-02-25 17:07:00 -08:00
Chris Roberts
3ec8d44cf9
Remove debug setup for restclient logger
2020-11-03 13:31:41 -08:00
Chris Roberts
b8702ac889
Include default options in option parser
...
Adds method to shared helpers for adding procs to be evaluated
which can add default modifications to the option parser used
by commands. Customized option parser class within Vagrant
handles processing defined procs to set options.
2020-03-27 16:57:59 -07:00
Brian Cain
f1bae9f1eb
Remove level conditional for RestClient logging
2018-10-12 09:07:12 -07:00
Brian Cain
adefbbaf6e
Scrub Vagrant Cloud tokens from RestClient logger
2018-10-12 09:07:12 -07:00
Brian Cain
e70b871660
Introduce cloud command
...
This commit adds a new command to Vagrant called `cloud`. It handles any
and all interactions with the external service Vagrant Cloud.
2018-10-12 09:06:00 -07:00
Chris Roberts
8500a609f5
Remove sensitive values from logger output
2018-09-10 10:40:51 -07:00
Robert Schulze
28771674d6
add Vagrant.version? helper method
...
to check Vagrant for a version match without raising an error.
2018-09-07 11:37:30 +02:00
Chris Roberts
3ace82cc5b
Update Vagrant.has_plugin? helper to function prior to plugin loading
...
Due to the Vagrantfile being loaded prior to plugin loading to determine
project local plugin information the Vagrant.has_plugin? helper will always
return false when the Vagrantfile is first loaded. To prevent this behavior
we can check for plugins in the plugin data files prior to the plugins
being loaded, and after they have been loaded we can fallback to the
original specification based check.
2018-08-31 14:03:42 -07:00
Chris Roberts
40f4e6f67e
Vagrant Environment isolated plugins
...
Adds support for plugins isolated to a specific `Vagrant::Environment`
which can be managed by the vagrant plugin command using the the
--local flag.
2018-07-17 14:49:41 -07:00
Chris Roberts
87b8321702
Remove win32 dependencies
2018-06-12 13:54:37 -07:00
Chris Roberts
d58096da31
Update plugin loading to prevent error suppression
...
Only catch exception types we care about when attempting to load
plugins. If no require call is successful, force an exception
instead of ignoring.
2018-05-08 13:47:31 -07:00
Chris Roberts
6ae1f4a2f6
Fix require for ffi-win32-extensions
...
Fixes #9698
2018-04-18 12:42:46 -07:00
Chris Roberts
9731720773
Update generated ssh private key file permissions on create
...
This updates the permissions on the automatically generated private
key file to only be readable by the user. Includes support for file
permission modification on Windows platform.
2018-04-10 14:15:14 -07:00
Chris Roberts
f3c5e86f28
Merge pull request #9504 from zachflower/feature/vagrant-aliases
...
Vagrant aliases
2018-04-06 15:39:18 -07:00
Chris Roberts
8ac0fedbbb
Suppress errors from invalid path encoding and carry on with best effort
...
Fixes #9299
2018-04-04 16:09:46 -07:00
Zachary Flower
bbb3cdaa9a
vagrant aliases proof-of-concept
2018-02-10 17:58:18 -07:00
Chris Roberts
522d503030
Use Ruby's resolver by default and allow replace to be disabled
2018-01-22 10:40:33 -08:00
Chris Roberts
6f663edad0
Scrub sensitive information prior to message output
...
This provides a simple wrapper around all output to
scrub any strings that have been registered as sensitive
before being output. Also included is a small change
to the initial debug output to only show vagrant specific
environment variables and not the full user environment.
2017-12-14 15:38:31 -08:00
Chris Roberts
da42bfa8ac
Provide optional timestamp on log output
...
Enable log message output to be prefixed with the date and time.
Include CLI flag to optionally enable `--timestamp` and a
convenience flag to enable debug logging with timestamps at
the same time `--debug-timestamp`.
2017-12-13 17:05:51 -08:00
Chris Roberts
564ed7456d
Warn when failing to require plugin instead of hard failure
2017-03-22 16:40:42 -07:00
Chris Roberts
25a2bdd279
Prevent generating environment variables with invalid empty names
2017-01-12 15:12:41 -08:00
Chris Roberts
9717432920
Add logger output when plugin loading is disabled
2016-11-28 16:55:38 -08:00
Chris Roberts
d87cf25ed2
Display original exception and backtraces in logger output
2016-11-28 07:48:16 -08:00
Chris Roberts
33c9d6183a
Provide more log information about configured plugins
2016-11-16 13:17:38 -08:00
Chris Roberts
e2d96f942f
Provide nice error output when plugin initialization fails
...
Include extra logging during initialization to display error if encountered
and solution set prior to performing activations.
2016-11-15 15:50:39 -08:00
Chris Roberts
44d3aedc5b
When bundler is in use, require :plugins group
2016-11-14 15:28:22 -08:00
Chris Roberts
ea13988367
Properly support plugin auto-loading with logging information
2016-11-11 14:24:25 -08:00
Chris Roberts
36d88ee268
Track installed gem version and display in startup logger information
2016-11-07 20:16:46 -08:00
Chris Roberts
1f5dd35d16
Remove bundler where no longer required
2016-11-07 20:00:38 -08:00
Chris Roberts
d5c5561302
Allow disable of user plugins if repair command is requested
2016-11-07 18:48:51 -08:00
Chris Roberts
1fb4553d14
[core] Remove bundler usage for plugin management
2016-11-07 18:48:51 -08:00
Mitchell Hashimoto
479323f1e8
for newer versions of Bundler, store the runtime
2015-07-09 22:12:47 -06:00
Seth Vargo
d8d5a66fa5
Add a function to get to the "original" environment with Vagrant
...
This function only works when used with the official Vagrant installer.
2015-07-09 12:34:04 -06:00
Aneesh Agrawal
16ac4e2321
If plugins are disabled, report them as not available.
...
Allows usage of VAGRANT_NO_PLUGINS env var to disable plugins.
Fixes #5430 .
2015-05-14 08:04:11 -04:00
mbrodala
cca19f8241
Check plugin name with version spec in has_plugin
...
If one passes a version spec to `Vagrant.has_plugin?`, the actual plugin name is ignored and any installed plugin which matches the version spec makes the check pass. Fix this by also checking for plugin name match in addition to the requested version spec.
2015-01-20 08:37:22 +01:00
Seth Vargo
5b9240ad8a
Add Push to the PLUGIN_COMPONENTS
2014-12-08 11:35:09 -08:00
Mitchell Hashimoto
2856df79ac
core: Vagrant.has_plugin? can take version requirements [GH-4650]
2014-10-23 10:52:02 -07:00