Mitchell Hashimoto 7e19d6849b Config loader no longer assumes latest version for procs.
Previously, all procs were assumed to just be the current version. This
is certainly not going to be true always so now the version number of
the configuration must be explicit if you're assigning a proc to the
configuration loader.
2012-06-23 12:06:54 -07:00

27 lines
592 B
Ruby

require "vagrant/util/stacked_proc_runner"
module VagrantPlugins
module Kernel_V1
# Represents a single sub-VM in a multi-VM environment.
class VagrantConfigSubVM
include Vagrant::Util::StackedProcRunner
attr_reader :options
def initialize
@options = {}
end
# This returns an array of the procs to configure this VM, with
# the proper version pre-pended for the configuration loader.
#
# @return [Array]
def config_procs
proc_stack.map do |proc|
["1", proc]
end
end
end
end
end