Sha256: fff7a64a06521dd4d2c5f4b63cee4ab7a1c07fd656b156385d5e5c3449303a70
Contents?: true
Size: 967 Bytes
Versions: 7
Compression:
Stored size: 967 Bytes
Contents
module VagrantPlugins module SyncedFolderNFSGuest module HostLinux 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 = `sudo umount '#{expanded_host_path}' 2>&1` if $?.exitstatus != 0 if not umount_msg.include? 'not currently mounted' ui.info umount_msg ui.info "Maybe NFS mounts still in use!" exit(1) end end end end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems