Module: VagrantPlugins::ProviderLibvirt::Util::Nfs

Includes:
Vagrant::Action::Builtin::MixinSyncedFolders
Included in:
Action::PrepareNFSSettings, Action::PruneNFSExports
Defined in:
lib/vagrant-libvirt/util/nfs.rb

Instance Method Summary collapse

Instance Method Details

#using_nfs?Boolean

We're using NFS if we have any synced folder with NFS configured. If we are not using NFS we don't need to do the extra work to populate these fields in the environment.

Returns:

  • (Boolean)

10
11
12
# File 'lib/vagrant-libvirt/util/nfs.rb', line 10

def using_nfs?
  !!synced_folders(@machine)[:nfs]
end