Sha256: 2ab25ee12a8fd64a813865fe0b71763edad79be874e84e5d259a85b0916248b5
Contents?: true
Size: 917 Bytes
Versions: 8
Compression:
Stored size: 917 Bytes
Contents
module VagrantPlugins module SyncedFolderNFSGuest module HostBSD module Cap class UnmountNFS def self.nfs_unmount(environment, ui, folders) folders.each do |name, opts| if opts[:type] != :nfs_guest next end ui.detail(I18n.t("vagrant.actions.vm.share_folders.mounting_entry", guestpath: opts[:guestpath], hostpath: opts[:hostpath])) expanded_host_path = `printf #{opts[:hostpath]}` umount_msg = `umount '#{expanded_host_path}' 2>&1` if $?.exitstatus != 0 if not umount_msg.include? 'not currently mounted' ui.info "NFS mounts still in use!" exit(1) end end end end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems