This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ARGV[0] == 'up' | |
plugins_dependencies = %w( vagrant-vbguest vagrant-docker-compose ) # <- ここに必要なプラグインを列挙する | |
plugin_status = false | |
plugins_dependencies.each do |plugin_name| | |
unless Vagrant.has_plugin? plugin_name | |
puts "#{plugin_name} is required." | |
system("vagrant plugin install #{plugin_name}") | |
plugin_status = true | |
end | |
end |