This works by registering a `config` with `:provider => true` with the same name as your provider. Vagrant will then automatically configure the provider when `config.vm.provider` is used.
15 lines
288 B
Ruby
15 lines
288 B
Ruby
module Vagrant
|
|
module Plugin
|
|
module V2
|
|
# This is the container class for the components of a single plugin.
|
|
class Components
|
|
attr_reader :provider_configs
|
|
|
|
def initialize
|
|
@provider_configs = Registry.new
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|