File: vm_subvm.rb

package info (click to toggle)
vagrant 2.2.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,072 kB
  • sloc: ruby: 80,731; sh: 369; makefile: 9; lisp: 1
file content (30 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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

      attr_reader :options

      def initialize
        @config_procs = []
        @options      = {}
      end

      def initialize_copy(other)
        super

        @config_procs = other.config_procs.clone
        @options      = other.options.clone
      end
    end
  end
end