-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathplugin.rb
47 lines (40 loc) · 1.31 KB
/
plugin.rb
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
require "vagrant"
module VagrantPlugins
module Kernel_V1
# This is the "kernel" of Vagrant and contains the configuration classes
# that make up the core of Vagrant.
class Plugin < Vagrant.plugin("1")
name "kernel"
description <<-DESC
The kernel of Vagrant. This plugin contains required items for even
basic functionality of Vagrant version 1.
DESC
# Core configuration keys provided by the kernel. Note that all
# the kernel configuration classes are marked as _upgrade safe_ (the
# true 2nd param). This means that these can be loaded in ANY version
# of the core of Vagrant.
config("ssh", true) do
require File.expand_path("../config/ssh", __FILE__)
SSHConfig
end
config("nfs", true) do
require File.expand_path("../config/nfs", __FILE__)
NFSConfig
end
config("package", true) do
require File.expand_path("../config/package", __FILE__)
PackageConfig
end
config("vagrant", true) do
require File.expand_path("../config/vagrant", __FILE__)
VagrantConfig
end
config("vm", true) do
require File.expand_path("../config/vm", __FILE__)
VMConfig
end
end
end
end