Sha256: a34f0c90b18a843ad8fbc62b2cdf55cd0be07829dfa4199c4dd025598952175f
Contents?: true
Size: 620 Bytes
Versions: 6
Compression:
Stored size: 620 Bytes
Contents
module VagrantPlugins module GuestFreeBSD module Cap class MountNFSFolder def self.mount_nfs_folder(machine, ip, folders) folders.each do |name, opts| if opts[:nfs_version] nfs_version_mount_option="-o nfsv#{opts[:nfs_version]}" end machine.communicate.sudo("mkdir -p #{opts[:guestpath]}", {shell: "sh"}) machine.communicate.sudo( "mount -t nfs #{nfs_version_mount_option} " + "'#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'", {shell: "sh"}) end end end end end end
Version data entries
6 entries across 3 versions & 2 rubygems