lib/vagrant-libvirt/plugin.rb in vagrant-libvirt-0.0.15 vs lib/vagrant-libvirt/plugin.rb in vagrant-libvirt-0.0.16

- old
+ new

@@ -4,12 +4,12 @@ raise 'The Vagrant Libvirt plugin must be run within Vagrant.' end # This is a sanity check to make sure no one is attempting to install # this into an early Vagrant version. -if Vagrant::VERSION < '1.3.0' - raise 'The Vagrant Libvirt plugin is only compatible with Vagrant 1.3+' +if Vagrant::VERSION < '1.5.0' + raise 'The Vagrant Libvirt plugin is only compatible with Vagrant 1.5+' end module VagrantPlugins module ProviderLibvirt class Plugin < Vagrant.plugin('2') @@ -28,9 +28,21 @@ setup_logging setup_i18n require_relative 'provider' Provider + end + + guest_capability("linux", "mount_p9_shared_folder") do + require_relative "cap/mount_p9" + Cap::MountP9 + end + + # lower priority than nfs or rsync + # https://github.com/pradels/vagrant-libvirt/pull/170 + synced_folder("9p", 4) do + require_relative "cap/synced_folder" + VagrantPlugins::SyncedFolder9p::SyncedFolder end # This initializes the internationalization strings. def self.setup_i18n I18n.load_path << File.expand_path('locales/en.yml',