Commit cb01ac23 by UmanShahzad

Fix spacing.

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