lib/vagrant-environments/environment.rb in vagrant-environments-0.1.5 vs lib/vagrant-environments/environment.rb in vagrant-environments-0.1.6
- old
+ new
@@ -3,11 +3,12 @@
class Environment < Vagrant.plugin(2, :config)
def define(config, &block)
settings = config.environments.data
settings["machines"].each do |name, options|
- config.vm.define [config.environments.active, name].join('__') do |machine|
- block.call(machine, options, settings["configs"])
+ machine_name = [config.environments.active, name].join('__')
+ config.vm.define machine_name do |machine|
+ block.call(machine, machine_name, options, settings["configs"])
end
end
end
def validate(_)