Sha256: 8b1668148742246531a8e0e088afd186bfff9671a45a484b57d269e780a9adb4

Contents?: true

Size: 632 Bytes

Versions: 15

Compression:

Stored size: 632 Bytes

Contents

required_plugins = {}
# Example usage:
# required_plugins["plugin-name"] = { version: "1.2.3", source: "https://rubygems.org" }
<% plugins.each do |p| -%>
required_plugins["<%= p %>"] = {}
<% end -%>

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 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.8.0.pre.3 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.8.0.pre.2 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.8.0.pre.1 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.7.2 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.7.1 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.7.0 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.7.0.pre.5 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.7.0.pre.4 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.7.0.pre.3 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.7.0.pre.2 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.7.0.pre.1 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.7.0.pre templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.6.5 templates/vagrant/.vagrantplugins.erb
vagrant-orchestrate-0.6.3 templates/vagrant/.vagrantplugins.erb