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