Class: VagrantPlugins::VagrantHanewinNfs::Config
- Inherits:
-
Kernel_V2::VMConfig
- Object
- Kernel_V2::VMConfig
- VagrantPlugins::VagrantHanewinNfs::Config
- Defined in:
- lib/vagrant-hanewin-nfs/config.rb
Instance Method Summary collapse
Instance Method Details
#finalize! ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/vagrant-hanewin-nfs/config.rb', line 7 def finalize! switch_back = {} @__synced_folders.each do |id, | if ([:nfs] || [:type] == :nfs || [:type] == "nfs") && Vagrant::Util::Platform.windows? switch_back[id] = true end end super @__synced_folders.each do |id, | if [:type] != :nfs && !switch_back[id].nil? [:type] = :nfs end end end |