vagrant/plugins/commands
Ray Ruvinskiy 5a7e00c5b1 Add HTTPS download options to `box update` and `box outdated`
Vagrant::Box.load_metadata did not provide a way to specify the HTTPS
download options that could be specified when downloading boxes
(ca cert, ca path, client cert, insecure). As a result, while it was
possible to add a box whose metadata file needed to be downloaded with one of
those options specified, it was impossible to check for updates. The following
changes have been made to address the situation:

1. Create a DownloadMixins module to provide the --insecure, --cacert, --capth,
   and --cert command line options to all of `vagrant box add`,
   `vagrant box update`, and `vagrant box outdated`.
2. Extend `Vagrant::Box.has_update?` and `Vagrant::Box.load_metadata` to accept
   said download options.
3. Extend `box outdated` and `box update` commands to pass download options
   down.
4. Extend `Vagrant::Builtin::Action::BoxCheckOutdated` to honour download
   options.
5. Options specified on the command line take precedence over options specified
   in the machine configuration, if any.
6. Fix bug in `vagrant box add` where client cert was being passed down using
   the wrong environment key.
7. Unit test coverage in update_test and box_check_outdated_test.

Resolves #4420
2014-09-07 23:57:34 -04:00
..
box Add HTTPS download options to `box update` and `box outdated` 2014-09-07 23:57:34 -04:00
destroy Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
global-status commands/global-status: call proper method 2014-04-23 06:21:44 -07:00
halt Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
help core: output synopsis with command [GH-2249] 2013-11-23 14:00:42 -08:00
init Fixed issue 4161 2014-07-08 13:19:43 -07:00
list-commands commands/list-commands: lists all commands primary and non-primary 2014-01-11 09:32:13 -08:00
package Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
plugin commands/plugin: error if windows with space in dir [GH-4351] 2014-08-29 12:16:40 -07:00
provision commands/provision: don't advertise parallel [GH-4398] 2014-08-29 08:32:04 -07:00
rdp commands/rdp: avoid rdp_info being nil 2014-05-20 20:18:15 -07:00
reload commands/reload: show post-up message [GH-4168] 2014-08-08 17:40:07 -07:00
resume core: output synopsis with command [GH-2249] 2013-11-23 14:00:42 -08:00
ssh Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
ssh_config Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
status Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
suspend clean up usage 2014-02-08 00:20:50 -08:00
up Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
version commands/version: remove unused require 2014-09-01 15:29:27 -07:00