Sha256: a02418b1c1d4b02f2b696267f5e627c41efc5b963074345810a7fc591cba7210
Contents?: true
Size: 881 Bytes
Versions: 7
Compression:
Stored size: 881 Bytes
Contents
module VagrantPlugins module SyncedFolderNFSGuest module HostLinux 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 = "sudo 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
7 entries across 7 versions & 1 rubygems