lib/vagrant-vcenter/plugin.rb in vagrant-vcenter-0.2.1 vs lib/vagrant-vcenter/plugin.rb in vagrant-vcenter-0.3.0

- old
+ new

@@ -2,12 +2,12 @@ require 'vagrant' rescue LoadError raise 'The Vagrant vCenter plugin must be run within Vagrant.' end -if Vagrant::VERSION < '1.5.0' - fail 'The Vagrant vCenter plugin is only compatible with Vagrant 1.5+' +if Vagrant::VERSION < '1.6.0' + fail 'The Vagrant vCenter plugin is only compatible with Vagrant 1.6+' end module VagrantPlugins module VCenter # Initialize Vagrant Plugin @@ -18,11 +18,13 @@ config(:vcenter, :provider) do require_relative 'config' Config end - provider(:vcenter) do + # We provide support for multiple box formats, including the new standard + # 'vmware_ovf' and the legacy 'vcloud' and 'vcenter'. + provider(:vcenter, box_format: %w[vmware_ovf vcloud vcenter], parallel: true) do setup_logging setup_i18n # Return the provider require_relative 'provider' @@ -31,9 +33,19 @@ # Add vagrant share support provider_capability('vcenter', 'public_address') do require_relative 'cap/public_address' Cap::PublicAddress + end + + provider_capability(:vcenter, :winrm_info) do + require_relative 'cap/winrm_info' + Cap::WinRM + end + + provider_capability(:vcenter, :rdp_info) do + require_relative 'cap/rdp_info' + Cap::RDP end def self.setup_i18n I18n.load_path << File.expand_path('locales/en.yml', VCenter.source_root)