Sha256: 5094ada14f44be965b893f8c30252de49422b8b938d850a22dbf68de104f9f55
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 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| 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, name, options, settings["configs"]) end end end def validate(_) errors = _detected_errors { 'environment' => errors } end end #Environment end #Envrionments end # VagrantPlugins
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-environments-0.1.7 | lib/vagrant-environments/environment.rb |