Method: Vagrant::Config::V2::Loader.load
- Defined in:
- lib/vagrant/config/v2/loader.rb
.load(config_proc) ⇒ Object
Loads the configuration for the given proc and returns a configuration object.
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/vagrant/config/v2/loader.rb', line 32 def self.load(config_proc) # Create a root configuration object root = new_root_object # Call the proc with the root config_proc.call(root) # Return the root object, which doubles as the configuration object # we actually use for accessing as well. root end |