Skip to content

Instantly share code, notes, and snippets.

@zotherstupidguy
Last active August 29, 2015 14:22
Show Gist options
  • Save zotherstupidguy/bebd38577d2887dd9388 to your computer and use it in GitHub Desktop.
Save zotherstupidguy/bebd38577d2887dd9388 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
if ! ENV["SKIP_VAGRANT_INSTALL_PLUGINS"]
system("
if [ \"#{ARGV[0]}\" = 'up' -o \"#{ARGV[0]}\" = 'reload' -o \"#{ARGV[0]}\" = 'provision' ];
then
./scripts/install_vagrant_plugins.sh
fi
")
puts ARGV
system("SKIP_VAGRANT_INSTALL_PLUGINS=true vagrant #{ARGV}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment