mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Only use vagrant 1.4 nfs changes when running vagrant 1.4.
This commit is contained in:
parent
0fa79bc5d4
commit
171feb38cf
@ -25,8 +25,12 @@ module VagrantPlugins
|
|||||||
b2.use CreateNetworks
|
b2.use CreateNetworks
|
||||||
b2.use CreateNetworkInterfaces
|
b2.use CreateNetworkInterfaces
|
||||||
|
|
||||||
|
if Vagrant::VERSION < "1.4.0"
|
||||||
|
b2.use NFS
|
||||||
|
else
|
||||||
b2.use SyncedFolderCleanup
|
b2.use SyncedFolderCleanup
|
||||||
b2.use SyncedFolders
|
b2.use SyncedFolders
|
||||||
|
end
|
||||||
|
|
||||||
b2.use PrepareNFSSettings
|
b2.use PrepareNFSSettings
|
||||||
b2.use ShareFolders
|
b2.use ShareFolders
|
||||||
@ -61,8 +65,12 @@ module VagrantPlugins
|
|||||||
# VM is not running or suspended. Start it.. Machine should gain
|
# VM is not running or suspended. Start it.. Machine should gain
|
||||||
# IP address when comming up, so wait for dhcp lease and store IP
|
# IP address when comming up, so wait for dhcp lease and store IP
|
||||||
# into machines data_dir.
|
# into machines data_dir.
|
||||||
|
if Vagrant::VERSION < "1.4.0"
|
||||||
|
b3.use NFS
|
||||||
|
else
|
||||||
b3.use SyncedFolderCleanup
|
b3.use SyncedFolderCleanup
|
||||||
b3.use SyncedFolders
|
b3.use SyncedFolders
|
||||||
|
end
|
||||||
b3.use PrepareNFSSettings
|
b3.use PrepareNFSSettings
|
||||||
b3.use ShareFolders
|
b3.use ShareFolders
|
||||||
|
|
||||||
@ -305,8 +313,10 @@ module VagrantPlugins
|
|||||||
autoload :WaitTillUp, action_root.join('wait_till_up')
|
autoload :WaitTillUp, action_root.join('wait_till_up')
|
||||||
autoload :SSHRun, 'vagrant/action/builtin/ssh_run'
|
autoload :SSHRun, 'vagrant/action/builtin/ssh_run'
|
||||||
autoload :HandleBoxUrl, 'vagrant/action/builtin/handle_box_url'
|
autoload :HandleBoxUrl, 'vagrant/action/builtin/handle_box_url'
|
||||||
|
unless Vagrant::VERSION < "1.4.0"
|
||||||
autoload :SyncedFolders, 'vagrant/action/builtin/synced_folders'
|
autoload :SyncedFolders, 'vagrant/action/builtin/synced_folders'
|
||||||
autoload :SyncedFolderCleanup, 'vagrant/action/builtin/synced_folder_cleanup'
|
autoload :SyncedFolderCleanup, 'vagrant/action/builtin/synced_folder_cleanup'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user