Sha256: 83a3655cd28cdf14e3ce71eadf99bf3a83be04b3b33d1ee61de6fbb107867dbb
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
module VagrantPlugins module GuestFreeBSD module Cap class MountNFSFolder def self.mount_nfs_folder(machine, ip, folders) comm = machine.communicate commands = [] folders.each do |_, opts| if opts[:nfs_version] mount_opts = "-o nfsv#{opts[:nfs_version]}" end commands << "mkdir -p '#{opts[:guestpath]}'" commands << "mount -t nfs #{mount_opts} '#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'" end comm.sudo(commands.join("\n"), { shell: "sh" }) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-unbundled-1.8.4.2 | plugins/guests/freebsd/cap/mount_nfs_folder.rb |
vagrant-unbundled-1.8.4.1 | plugins/guests/freebsd/cap/mount_nfs_folder.rb |