Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Package plugins with vagrant
needs_restart = false
plugins = {
'vagrant-aws' => '0.5.0',
'vagrant-s3auth' => '0.1.0',
'vagrant-bindfs' => '0.3.2',
plugins.each do |plugin, version|
unless Vagrant.has_plugin?(plugin)
system("vagrant plugin install #{plugin} --plugin-version #{version}") || exit!
needs_restart = true
exit system('vagrant', *ARGV) if needs_restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.