Commit cb01ac23 by UmanShahzad

Fix spacing.

parent e5935453
......@@ -6,28 +6,28 @@ end
def install_plugins(plugins)
if not is_check_necessary
exit
exit
end
not_installed = get_not_installed(plugins)
if not_installed.any?
puts "The following required plugins must be installed:"
puts "'#{not_installed.join("', '")}'"
print "Install? [y]/n: "
unless STDIN.gets.chomp == "n"
not_installed.each { |plugin| install_plugin(plugin) }
else
exit
end
$? ? continue : raise('Plugin installation failed, see errors above.')
puts "The following required plugins must be installed:"
puts "'#{not_installed.join("', '")}'"
print "Install? [y]/n: "
unless STDIN.gets.chomp == "n"
not_installed.each { |plugin| install_plugin(plugin) }
else
exit
end
$? ? continue : raise('Plugin installation failed, see errors above.')
end
end
def get_not_installed(plugins)
not_installed = []
plugins.each do |plugin|
unless Vagrant.has_plugin?(plugin)
not_installed << plugin
unless Vagrant.has_plugin?(plugin)
not_installed << plugin
end
end
return not_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