2012-04-18 05:12:27 +00:00
|
|
|
require "vagrant/util/stacked_proc_runner"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
2012-06-15 01:49:20 +00:00
|
|
|
module Kernel_V1
|
2012-04-18 05:12:27 +00:00
|
|
|
# Represents a single sub-VM in a multi-VM environment.
|
|
|
|
class VagrantConfigSubVM
|
|
|
|
include Vagrant::Util::StackedProcRunner
|
|
|
|
|
|
|
|
attr_reader :options
|
|
|
|
|
|
|
|
def initialize
|
|
|
|
@options = {}
|
|
|
|
end
|
2012-06-23 19:06:54 +00:00
|
|
|
|
|
|
|
# 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
|
2012-04-18 05:12:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|