Sha256: 0ef90d5349330eee79088909cf88b146e02f0e9154d637e32cabccf8ed7865fc
Contents?: true
Size: 654 Bytes
Versions: 15
Compression:
Stored size: 654 Bytes
Contents
required_plugins = {} # Example usage: # required_plugins["plugin-name"] = { version: "1.2.3", source: "https://rubygems.org" } required_plugins["vagrant-orchestrate"] = {} required_plugins["vagrant-managed-servers"] = {} needs_restart = false required_plugins.each do |plugin, options| version = options[:version] unless Vagrant.has_plugin?(plugin, version) command = "vagrant plugin install #{plugin}" command += " --plugin-version #{version}" if version command += " --plugin-source #{options[:source]}" if options[:source] system command needs_restart = true end end if needs_restart exec "vagrant #{ARGV.join' '}" end
Version data entries
15 entries across 15 versions & 1 rubygems