I don't use `activated` here because I'd really like to optimize performance as much as possible, and loading files from disk is generally slow. So instead of using `activated` I load the file at the last possible moment which is when the exact class is being requested. I don't think many people will do this outside of the core, and I'm not too concerned.
21 lines
397 B
Ruby
21 lines
397 B
Ruby
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module GuestLinux
|
|
class Plugin < Vagrant.plugin("1")
|
|
name "Linux guest."
|
|
description "Linux guest support."
|
|
|
|
config("linux") do
|
|
require File.expand_path("../config", __FILE__)
|
|
Config
|
|
end
|
|
|
|
guest("linux") do
|
|
require File.expand_path("../guest", __FILE__)
|
|
Guest
|
|
end
|
|
end
|
|
end
|
|
end
|