Sha256: 08bd4f2b5a39a0f2842e374925ea1983870c3b9fd7be021877bb2de491518e10
Contents?: true
Size: 874 Bytes
Versions: 8
Compression:
Stored size: 874 Bytes
Contents
module VagrantPlugins module SyncedFolderNFSGuest module HostBSD module Cap class MountNFS def self.nfs_mount(environment, ui, id, ips, folders) folders.each do |name, opts| if opts[:type] != :nfs_guest next end ips.each do |ip| ui.detail(I18n.t("vagrant.actions.vm.share_folders.mounting_entry", guestpath: opts[:guestpath], hostpath: opts[:hostpath])) system("mkdir -p #{opts[:hostpath]}") mount_command = "mount -t nfs -o noatime '#{ip}:#{opts[:guestpath]}' '#{opts[:hostpath]}'" if system(mount_command) break end end end end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems