vagrant/plugins/kernel_v2/config/vm_subvm.rb

31 lines
657 B
Ruby
Raw Normal View History

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
# 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
@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