diff --git a/lib/vagrant.rb b/lib/vagrant.rb index 747214e85..82ed04d27 100644 --- a/lib/vagrant.rb +++ b/lib/vagrant.rb @@ -91,6 +91,7 @@ module Vagrant c.register([:"1", :config]) { Plugin::V1::Config } c.register([:"1", :guest]) { Plugin::V1::Guest } c.register([:"1", :host]) { Plugin::V1::Host } + c.register([:"1", :provider]) { Plugin::V1::Provider } c.register([:"1", :provisioner]) { Plugin::V1::Provisioner } # Returns a `Vagrant::Registry` object that contains all the built-in diff --git a/lib/vagrant/plugin/v1.rb b/lib/vagrant/plugin/v1.rb index 6c4c6d339..c43e8d687 100644 --- a/lib/vagrant/plugin/v1.rb +++ b/lib/vagrant/plugin/v1.rb @@ -10,6 +10,7 @@ module Vagrant autoload :Guest, "vagrant/plugin/v1/guest" autoload :Host, "vagrant/plugin/v1/host" autoload :Plugin, "vagrant/plugin/v1/plugin" + autoload :Provider, "vagrant/plugin/v1/provider" autoload :Provisioner, "vagrant/plugin/v1/provisioner" end end diff --git a/lib/vagrant/plugin/v1/provider.rb b/lib/vagrant/plugin/v1/provider.rb new file mode 100644 index 000000000..f4650af9b --- /dev/null +++ b/lib/vagrant/plugin/v1/provider.rb @@ -0,0 +1,11 @@ +module Vagrant + module Plugin + module V1 + # This is the base class for a provider for the V1 API. A provider + # is responsible for creating compute resources to match the needs + # of a Vagrant-configured system. + class Provider + end + end + end +end diff --git a/test/unit/vagrant_test.rb b/test/unit/vagrant_test.rb index 4985761fa..6e555af1f 100644 --- a/test/unit/vagrant_test.rb +++ b/test/unit/vagrant_test.rb @@ -16,6 +16,7 @@ describe Vagrant do described_class.plugin("1", :config).should == Vagrant::Plugin::V1::Config described_class.plugin("1", :guest).should == Vagrant::Plugin::V1::Guest described_class.plugin("1", :host).should == Vagrant::Plugin::V1::Host + described_class.plugin("1", :provider).should == Vagrant::Plugin::V1::Provider described_class.plugin("1", :provisioner).should == Vagrant::Plugin::V1::Provisioner end end