Commit e5935453 by UmanShahzad

Check for exempt subcommands & move vagrantplugins to vagrant dir.

Moved logic to check if plugin installation check
is necessary into vagrantplugins.rb.
parent e1031638
Vagrant.require_version ">= 1.8.7"
unless ARGV.empty?
require_relative '../../../vagrantplugins'
install_plugins(['vagrant-vbguest'])
end
require_relative '../../vagrantplugins'
install_plugins(['vagrant-vbguest'])
VAGRANTFILE_API_VERSION = "2"
......
Vagrant.require_version ">= 1.8.7"
unless ARGV.empty?
require_relative '../../../vagrantplugins'
install_plugins(['vagrant-vbguest'])
end
require_relative '../../vagrantplugins'
install_plugins(['vagrant-vbguest'])
VAGRANTFILE_API_VERSION = "2"
......
Vagrant.require_version ">= 1.8.7"
require_relative '../../vagrantplugins'
install_plugins(['vagrant-vbguest'])
unless ARGV.empty?
require_relative '../../../vagrantplugins'
install_plugins(['vagrant-vbguest'])
end
VAGRANTFILE_API_VERSION = "2"
......
Vagrant.require_version ">= 1.8.7"
unless ARGV.empty?
require_relative '../../../vagrantplugins'
install_plugins(['vagrant-vbguest'])
end
require_relative '../../vagrantplugins'
install_plugins(['vagrant-vbguest'])
VAGRANTFILE_API_VERSION = "2"
......
# Don't check for plugins on certain subcommands of vagrant.
def is_check_necessary
exempt = ['help', 'plugin', 'version']
return ARGV.any? ? (ARGV & exempt).empty? : false
end
def install_plugins(plugins)
if not is_check_necessary
exit
end
not_installed = get_not_installed(plugins)
if not_installed.any?
puts "The following required plugins must be installed:"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment