Change kernel plugin to use `activated` block
This commit is contained in:
parent
096e61b122
commit
162227765f
|
@ -2,12 +2,6 @@ require "vagrant"
|
|||
|
||||
module VagrantPlugins
|
||||
module Kernel
|
||||
autoload :SSHConfig, File.expand_path("../config/ssh", __FILE__)
|
||||
autoload :NFSConfig, File.expand_path("../config/nfs", __FILE__)
|
||||
autoload :PackageConfig, File.expand_path("../config/package", __FILE__)
|
||||
autoload :VagrantConfig, File.expand_path("../config/vagrant", __FILE__)
|
||||
autoload :VMConfig, File.expand_path("../config/vm", __FILE__)
|
||||
|
||||
# This is the "kernel" of Vagrant and contains the configuration classes
|
||||
# that make up the core of Vagrant.
|
||||
class Plugin < Vagrant.plugin("1")
|
||||
|
@ -17,6 +11,14 @@ module VagrantPlugins
|
|||
basic functionality of Vagrant version 1.
|
||||
DESC
|
||||
|
||||
activated do
|
||||
require File.expand_path("../config/ssh", __FILE__)
|
||||
require File.expand_path("../config/nfs", __FILE__)
|
||||
require File.expand_path("../config/package", __FILE__)
|
||||
require File.expand_path("../config/vagrant", __FILE__)
|
||||
require File.expand_path("../config/vm", __FILE__)
|
||||
end
|
||||
|
||||
# Core configuration keys provided by the kernel.
|
||||
config("ssh") { SSHConfig }
|
||||
config("nfs") { NFSConfig }
|
||||
|
|
Loading…
Reference in New Issue