2012-11-07 05:28:44 +00:00
|
|
|
require "vagrant/util/stacked_proc_runner"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module Kernel_V2
|
|
|
|
# Represents a single sub-VM in a multi-VM environment.
|
|
|
|
class VagrantConfigSubVM
|
|
|
|
include Vagrant::Util::StackedProcRunner
|
|
|
|
|
2013-01-31 03:24:09 +00:00
|
|
|
# Returns an array of the configuration procs in [version, proc]
|
|
|
|
# format.
|
|
|
|
#
|
|
|
|
# @return [Array]
|
|
|
|
attr_reader :config_procs
|
|
|
|
|
2012-11-07 05:28:44 +00:00
|
|
|
attr_reader :options
|
|
|
|
|
|
|
|
def initialize
|
2013-01-31 03:24:09 +00:00
|
|
|
@config_procs = []
|
|
|
|
@options = {}
|
2012-11-07 05:28:44 +00:00
|
|
|
end
|
2013-03-09 05:23:04 +00:00
|
|
|
|
|
|
|
def initialize_copy(other)
|
|
|
|
super
|
|
|
|
|
|
|
|
@config_procs = other.config_procs.clone
|
|
|
|
@options = other.options.clone
|
|
|
|
end
|
2012-11-07 05:28:44 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|