Sha256: 8eab2841d8dc2bc5c24b57b68097866f7829e7f0e17ab10f656850491661c4ec
Contents?: true
Size: 576 Bytes
Versions: 5
Compression:
Stored size: 576 Bytes
Contents
module VagrantPlugins module Environments 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"]) end end end def validate(_) errors = _detected_errors { 'environment' => errors } end end #Environment end #Envrionments end # VagrantPlugins
Version data entries
5 entries across 5 versions & 1 rubygems