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

Version Path
vagrant-orchestrate-0.8.0 .vagrantplugins
vagrant-orchestrate-0.8.0.pre.3 .vagrantplugins
vagrant-orchestrate-0.8.0.pre.2 .vagrantplugins
vagrant-orchestrate-0.8.0.pre.1 .vagrantplugins
vagrant-orchestrate-0.7.2 .vagrantplugins
vagrant-orchestrate-0.7.1 .vagrantplugins
vagrant-orchestrate-0.7.0 .vagrantplugins
vagrant-orchestrate-0.7.0.pre.5 .vagrantplugins
vagrant-orchestrate-0.7.0.pre.4 .vagrantplugins
vagrant-orchestrate-0.7.0.pre.3 .vagrantplugins
vagrant-orchestrate-0.7.0.pre.2 .vagrantplugins
vagrant-orchestrate-0.7.0.pre.1 .vagrantplugins
vagrant-orchestrate-0.7.0.pre .vagrantplugins
vagrant-orchestrate-0.6.5 .vagrantplugins
vagrant-orchestrate-0.6.3 .vagrantplugins